diff options
author | Ryan Bloom <rbb@apache.org> | 2001-02-22 05:05:58 +0100 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2001-02-22 05:05:58 +0100 |
commit | e552aeb0e3220bd47562e5cd88c02038ca5a1a36 (patch) | |
tree | 5a25c4f64107e73bfc1f2ce149c7cc270db47218 /modules/loggers/mod_log_config.c | |
parent | Add the correct language tag for interoperation with the Taiwanese (diff) | |
download | apache2-e552aeb0e3220bd47562e5cd88c02038ca5a1a36.tar.xz apache2-e552aeb0e3220bd47562e5cd88c02038ca5a1a36.zip |
Add a couple of GCC attribute tags to printf style functions. This also
fixes a couple of mismatched parameters highlighted revealed by the
attribute.
Submitted by: Jon Travis <jtravis@covalent.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/loggers/mod_log_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index 432059aecb..150babfbf6 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -490,13 +490,13 @@ static const char *log_request_time(request_rec *r, char *a) static const char *log_request_duration(request_rec *r, char *a) { - return apr_psprintf(r->pool, "%ld", (apr_time_now() - r->request_time) + return apr_psprintf(r->pool, "%qd", (apr_time_now() - r->request_time) / APR_USEC_PER_SEC); } static const char *log_request_duration_microseconds(request_rec *r, char *a) { - return apr_psprintf(r->pool, "%ld", (apr_time_now() - r->request_time)); + return apr_psprintf(r->pool, "%qd", (apr_time_now() - r->request_time)); } /* These next two routines use the canonical name:port so that log |