From: Ruediger Pluem Date: Sat, 12 Jan 2008 07:01:52 +0000 (+0000) Subject: * Hex pids are bogus anyway and on environments with APR_PID_T_FMT d this X-Git-Tag: 2.3.0~1030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a9809af1d5578454d3272ea043747d37541cbb6;p=apache * Hex pids are bogus anyway and on environments with APR_PID_T_FMT d this breaks and print x. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611376 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index 624d2c2f0f..f44f0b465e 100644 --- a/modules/loggers/mod_log_forensic.c +++ b/modules/loggers/mod_log_forensic.c @@ -195,7 +195,7 @@ 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, "%" APR_PID_T_FMT "x:%lx:%x", getpid(), + id = apr_psprintf(r->pool, "%" APR_PID_T_FMT ":%lx:%x", getpid(), time(NULL), apr_atomic_inc32(&next_id)); } ap_set_module_config(r->request_config, &log_forensic_module, (char *)id);