From: Henrik Nordstrom Date: Mon, 25 Jul 2011 22:17:24 +0000 (+0200) Subject: Use only standard printf length specifiers. Z is not one of them. X-Git-Tag: take08~55^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e8f018ae97270a7e8088d604882167e3db3a57b;p=thirdparty%2Fsquid.git Use only standard printf length specifiers. Z is not one of them. --- diff --git a/compat/xalloc.cc b/compat/xalloc.cc index f7bcfe22b7..e148f22bd9 100644 --- a/compat/xalloc.cc +++ b/compat/xalloc.cc @@ -78,7 +78,7 @@ xcalloc(size_t n, size_t sz) if (p == NULL) { if (failure_notify) { static char msg[128]; - snprintf(msg, 128, "xcalloc: Unable to allocate %Zu blocks of %Zu bytes!\n", n, sz); + snprintf(msg, 128, "xcalloc: Unable to allocate %lu blocks of %lu bytes!\n", (unsigned long)n, (unsigned long)sz); failure_notify(msg); } else { perror("xcalloc");