From: Ruediger Pluem Date: Thu, 3 Jan 2008 14:47:41 +0000 (+0000) Subject: * Silence a compiler warning by using the correct format. X-Git-Tag: 2.3.0~1058 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49dec51c610b02a97707f1091f2273ed49a11d4b;p=apache * Silence a compiler warning by using the correct format. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@608508 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index 3fad35a70b..624d2c2f0f 100644 --- a/modules/loggers/mod_log_forensic.c +++ b/modules/loggers/mod_log_forensic.c @@ -195,8 +195,8 @@ static int log_before(request_rec *r) if (!(id = apr_table_get(r->subprocess_env, "UNIQUE_ID"))) { /* we make the assumption that we can't go through all the PIDs in under 1 second */ - id = apr_psprintf(r->pool, "%x:%lx:%x", getpid(), time(NULL), - apr_atomic_inc32(&next_id)); + id = apr_psprintf(r->pool, "%" APR_PID_T_FMT "x:%lx:%x", getpid(), + time(NULL), apr_atomic_inc32(&next_id)); } ap_set_module_config(r->request_config, &log_forensic_module, (char *)id);