Patchwork [2/4] Fix warning on format

login
register
mail settings
Submitter Eric Leblond
Date Jan. 19, 2013, 9:53 a.m.
Message ID <1358589231-1358-3-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/213808/
State Accepted
Headers show

Comments

Eric Leblond - Jan. 19, 2013, 9:53 a.m.
It seems Z is a libc5 only format modifier. Using standard 'z'
instead.

Signed-off-by: Eric Leblond <eric@regit.org>
---
 util/printpkt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/util/printpkt.c b/util/printpkt.c
index 3983a68..6b646e9 100644
--- a/util/printpkt.c
+++ b/util/printpkt.c
@@ -299,7 +299,7 @@  static int printpkt_ipv6(struct ulogd_key *res, char *buf)
 				   (char *) ikey_get_ptr(&res[KEY_IP_DADDR]));
 
 	if (pp_is_valid(res, KEY_IP6_PAYLOAD_LEN))
-		buf_cur += sprintf(buf_cur, "LEN=%Zu ",
+		buf_cur += sprintf(buf_cur, "LEN=%zu ",
 				   ikey_get_u16(&res[KEY_IP6_PAYLOAD_LEN]) +
 				   sizeof(struct ip6_hdr));