summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2006-12-22 18:33:18 +0000
committerBart De Schuymer <bdschuym@pandora.be>2006-12-22 18:33:18 +0000
commitc5fe705ee4938cde15e0896f2d0c89e11e84fc42 (patch)
treef5e5fb6a6323aebea12631370cf520557454ea56 /userspace/ebtables2/ebtables.c
parented6500371f35d8919df284589ca3a66949d2862c (diff)
make printing of uint64_t architecture independent
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r--userspace/ebtables2/ebtables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index 20a3bad..1b819cd 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <inttypes.h>
#include "include/ebtables_u.h"
#include "include/ethernetdb.h"
@@ -323,7 +324,7 @@ static void list_em(struct ebt_u_entries *entries)
if (replace->flags & LIST_X)
printf("-c %llu %llu", pcnt, bcnt);
else
- printf(", pcnt = %llu -- bcnt = %llu", pcnt, bcnt);
+ printf(", pcnt = %"PRIu64" -- bcnt = %"PRIu64, pcnt, bcnt);
}
printf("\n");
hlp = hlp->next;