Fix apr_size_t formatting. Do not bother with formatting errors on solaris.

This commit is contained in:
brectanus
2008-01-29 22:15:48 +00:00
parent b39bd86797
commit 588b4fba81
2 changed files with 2 additions and 2 deletions

View File

@@ -445,7 +445,7 @@ static int flatten_response_body(modsec_rec *msr) {
msr->resbody_status = RESBODY_STATUS_READ_BRIGADE; msr->resbody_status = RESBODY_STATUS_READ_BRIGADE;
if (msr->resbody_length + 1 <= 0) { if (msr->resbody_length + 1 <= 0) {
msr_log(msr, 1, "Output filter: Invalid response length: %lu", msr->resbody_length); msr_log(msr, 1, "Output filter: Invalid response length: %" APR_SIZE_T_FMT, msr->resbody_length);
return -1; return -1;
} }

View File

@@ -31,7 +31,7 @@ typedef struct msc_string msc_string;
#endif #endif
/* For GNU C, tell the compiler to check printf like formatters */ /* For GNU C, tell the compiler to check printf like formatters */
#if defined(__GNUC__) #if (defined(__GNUC__) && !defined(SOLARIS2))
#define PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b))) #define PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
#else #else
#define PRINTF_ATTRIBUTE(a,b) #define PRINTF_ATTRIBUTE(a,b)