netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Leblond <eric@regit.org>
To: netfilter-devel@vger.kernel.org
Cc: eric@regit.org
Subject: [PATCH 2/4] Fix warning on format
Date: Sat, 19 Jan 2013 10:53:49 +0100	[thread overview]
Message-ID: <1358589231-1358-3-git-send-email-eric@regit.org> (raw)
In-Reply-To: <1358589231-1358-1-git-send-email-eric@regit.org>

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(-)

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));
 
-- 
1.7.10.4


  parent reply	other threads:[~2013-01-19  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-19  9:53 [ulogd patch 0/4] minor code cleaning Eric Leblond
2013-01-19  9:53 ` [PATCH 1/4] Get rid of SVN tag in comment Eric Leblond
2013-01-19  9:53 ` Eric Leblond [this message]
2013-01-19  9:53 ` [PATCH 3/4] base: fix warning on pointer handling Eric Leblond
2013-01-19  9:53 ` [PATCH 4/4] graphite: fix warning about gnu extension usage Eric Leblond
2013-01-25 22:28 ` [ulogd patch 0/4] minor code cleaning Eric Leblond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1358589231-1358-3-git-send-email-eric@regit.org \
    --to=eric@regit.org \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).