]> git.pld-linux.org Git - packages/squid.git/blobdiff - squid-2.5.STABLE4-apache-like-combined-log.patch
- up to 3.5.20
[packages/squid.git] / squid-2.5.STABLE4-apache-like-combined-log.patch
index 503e5f231b03a1ba1c71c1ec81539cd8185f566a..980ab6cd745aeaae24ab45ae6c03edad4bb8d0bd 100644 (file)
@@ -14,9 +14,9 @@ diff -Nur squid-2.5.STABLE4.orig/src/access_log.c squid-2.5.STABLE4/src/access_l
        client = inet_ntoa(al->cache.caddr);
      user1 = accessLogFormatName(al->cache.authuser);
      user2 = accessLogFormatName(al->cache.rfc931);
--    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %ld %s:%s",
+-    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %" PRINTF_OFF_T " %s:%s",
 +
-+    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %ld \"%s\" \"%s\"",
++    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %" PRINTF_OFF_T " \"%s\" \"%s\"",
        client,
 -      user2 ? user2 : dash_str,
 -      user1 ? user1 : dash_str,
@@ -25,7 +25,7 @@ diff -Nur squid-2.5.STABLE4.orig/src/access_log.c squid-2.5.STABLE4/src/access_l
 -      al->url,
 -      al->http.version.major, al->http.version.minor,
 -      al->http.code,
--      (long int) al->cache.size,
+-      al->cache.size,
 -      log_tags[al->cache.code],
 -      hier_strings[al->hier.code]);
 +       user2 ? user2 : dash_str,
@@ -35,7 +35,7 @@ diff -Nur squid-2.5.STABLE4.orig/src/access_log.c squid-2.5.STABLE4/src/access_l
 +       (al->http_uri ? al->http_uri : al->url),
 +       al->http.version.major, al->http.version.minor,
 +       al->http.code,
-+       (long int) al->cache.size,
++       al->cache.size,
 +       httpHeaderHas( req_hdr, HDR_REFERER ) ?
 +         httpHeaderGetStr( req_hdr, HDR_REFERER ) :
 +         dash_str,     // Referer if we have it, else dash_str.
This page took 0.060195 seconds and 4 git commands to generate.