From: Duncan Roe Date: Tue, 3 Jan 2017 11:53:02 +0000 (+0100) Subject: datatype: printf format warnings on 32-bit build X-Git-Tag: v0.8~275 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f917d5fdc7d4f14c50c66192dcd9cc0233a331c2;p=thirdparty%2Fnftables.git datatype: printf format warnings on 32-bit build This is %lu with uint64_t again. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1109 Signed-off-by: Duncan Roe Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/datatype.c b/src/datatype.c index f5f4f3adc..1518606a3 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -205,7 +205,7 @@ void symbol_table_print(const struct symbol_table *tbl, switch_byteorder(&value, len); if (tbl->base == BASE_DECIMAL) - printf("\t%-30s\t%20lu\n", s->identifier, value); + printf("\t%-30s\t%20"PRIu64"\n", s->identifier, value); else printf("\t%-30s\t0x%.*" PRIx64 "\n", s->identifier, 2 * len, value);