From: Florian Westphal Date: Tue, 4 Apr 2017 18:46:01 +0000 (+0200) Subject: src: fix build warning on i686 X-Git-Tag: v0.8~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd3877cd4a7c4943dc29c274366795f02c42feb0;p=thirdparty%2Fnftables.git src: fix build warning on i686 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 Acked-by: Pablo Neira Ayuso --- diff --git a/src/datatype.c b/src/datatype.c index 06a045bc..d2eed769 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);