Message ID | 20170404184601.15961-1-fw@strlen.de |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
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> -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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);
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(-)