]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
datatype: printf format warnings on 32-bit build
authorDuncan Roe <duncan_roe@acslink.net.au>
Tue, 3 Jan 2017 11:53:02 +0000 (12:53 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Jan 2017 13:21:53 +0000 (14:21 +0100)
This is %lu with uint64_t again.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1109
Signed-off-by: Duncan Roe <duncan_roe@acslink.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/datatype.c

index f5f4f3adc3054dce2384ba7fadebc182317d5a55..1518606a3f897b194db222420a42f25873a389b6 100644 (file)
@@ -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);