Skip to contentSkip to conversation

src: fix build warning on i686

PATCH In review Florian Westphal 2 participants 2 messages Apr 4, 2017 – Apr 6, 2017 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 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);

---
 src/datatype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/datatype.c +1 -1
index 06a045b..d2eed76 100644
@@ -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);
 
Signature · 1 line
2.9.3