netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: netfilter-devel@vger.kernel.org
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nft] src: fix build warning on i686
Date: Tue,  4 Apr 2017 20:46:01 +0200	[thread overview]
Message-ID: <20170404184601.15961-1-fw@strlen.de> (raw)

datatype.c:182:13: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=] printf("%lu", val);

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 src/datatype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/datatype.c b/src/datatype.c
index 06a045b..d2eed76 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -179,7 +179,7 @@ void symbolic_constant_print(const struct symbol_table *tbl,
 		printf("\"");
 
 	if (numeric_output > NUMERIC_ALL)
-		printf("%lu", val);
+		printf("%"PRIu64"", val);
 	else
 		printf("%s", s->identifier);
 
-- 
2.9.3


             reply	other threads:[~2017-04-04 18:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 18:46 Florian Westphal [this message]
2017-04-06 22:54 ` [PATCH nft] src: fix build warning on i686 Pablo Neira Ayuso

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=20170404184601.15961-1-fw@strlen.de \
    --to=fw@strlen.de \
    --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).