]> granicus.if.org Git - apache/commitdiff
* Silence a compiler warning by using the correct format.
authorRuediger Pluem <rpluem@apache.org>
Thu, 3 Jan 2008 14:47:41 +0000 (14:47 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 3 Jan 2008 14:47:41 +0000 (14:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@608508 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_forensic.c

index 3fad35a70b8ae3a20534cbe92a13a6b164ec2023..624d2c2f0f84b3a38f2763175d48d65b458ec040 100644 (file)
@@ -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);