]> granicus.if.org Git - apache/blobdiff - modules/cache/mod_disk_cache.c
* modules/cache/mod_disk_cache.c (store_body): Fix format string
[apache] / modules / cache / mod_disk_cache.c
index efdb4a6d374c6bc92a04b5f827bb9d3edb40cf74..bfe343b24ad5f67167f35f934f5e74832412abfc 100644 (file)
@@ -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);