7 * ap_log_error does not support %zd or %zu conversion for type_t arguments
8 * So with ap_log_error one would have to specify either %d or %ld, depending on the
9 * platform (32-bit or 64-bit). This violates the whole purpose of type_t, which
10 * was introduced in C exactly to provide cross-platform compatibility...
11 * This wrapper function supports %zd and %zu conversion parameters.
12 * Note that it truncates the logged message to 1000 bytes, so don't use it to log messages that might
15 void ap_log_error_wrapper(const char *file
, int line
, int level
, apr_status_t status
, const server_rec
*s
,
21 vsnprintf(msg
, sizeof(msg
), fmt
, ap
);
22 ap_log_error(file
, line
, level
, status
, s
, "%s", msg
);