summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_disk_cache.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-02-11 13:16:06 +0100
committerJoe Orton <jorton@apache.org>2005-02-11 13:16:06 +0100
commit519b48fce1de6cc6432e39dcb44746d4dabf9d43 (patch)
treee08b7cd52edd9dc5e072ddb6e178bca5457493df /modules/cache/mod_disk_cache.c
parentMove the POSIX reg* implementations into the ap_* namespace; (diff)
downloadapache2-519b48fce1de6cc6432e39dcb44746d4dabf9d43.tar.xz
apache2-519b48fce1de6cc6432e39dcb44746d4dabf9d43.zip
* modules/cache/mod_disk_cache.c (store_body): Fix format string
warnings; print integers using _FMT strings. * modules/cache/cache_util.c (ap_cache_check_freshness): Remove unused variable. * modules/cache/cache_storage.c (cache_select_url): Remove unused variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153385 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/cache/mod_disk_cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/cache/mod_disk_cache.c b/modules/cache/mod_disk_cache.c
index efdb4a6d37..bfe343b24a 100644
--- a/modules/cache/mod_disk_cache.c
+++ b/modules/cache/mod_disk_cache.c
@@ -659,9 +659,9 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
dobj->file_size += written;
if (dobj->file_size > conf->maxfs) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
- "cache_disk: URL %s failed the size check (%lu>%lu)",
- h->cache_obj->key, (unsigned long)dobj->file_size,
- (unsigned long)conf->maxfs);
+ "cache_disk: URL %s failed the size check "
+ "(%" APR_OFF_T_FMT ">%" APR_SIZE_T_FMT ")",
+ h->cache_obj->key, dobj->file_size, conf->maxfs);
/* Remove the intermediate cache file and return non-APR_SUCCESS */
file_cache_errorcleanup(dobj, r);
return APR_EGENERAL;
@@ -683,7 +683,8 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
}
if (dobj->file_size < conf->minfs) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
- "cache_disk: URL %s failed the size check (%lu<%lu)",
+ "cache_disk: URL %s failed the size check "
+ "(%" APR_OFF_T_FMT "<%" APR_SIZE_T_FMT ")",
h->cache_obj->key, dobj->file_size, conf->minfs);
/* Remove the intermediate cache file and return non-APR_SUCCESS */
file_cache_errorcleanup(dobj, r);