All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nft] src: fix build warning on i686
@ 2017-04-04 18:46 Florian Westphal
  2017-04-06 22:54 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2017-04-04 18:46 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH nft] src: fix build warning on i686
  2017-04-04 18:46 [PATCH nft] src: fix build warning on i686 Florian Westphal
@ 2017-04-06 22:54 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-04-06 22:54 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

On Tue, Apr 04, 2017 at 08:46:01PM +0200, Florian Westphal wrote:
> 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>

Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-06 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 18:46 [PATCH nft] src: fix build warning on i686 Florian Westphal
2017-04-06 22:54 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.