summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-02-14 19:43:00 +0000
committerglebius <glebius@FreeBSD.org>2014-02-14 19:43:00 +0000
commitc8ef7052cb5f93ecce44692d6842be00b263c6a3 (patch)
tree0f962f5af229463a514f29f171275fe8c1ecd140 /sbin
parent3000aef4b44bdeb9b83e0df3facbc6a75f8da412 (diff)
downloadFreeBSD-src-c8ef7052cb5f93ecce44692d6842be00b263c6a3.zip
FreeBSD-src-c8ef7052cb5f93ecce44692d6842be00b263c6a3.tar.gz
Fix build on 32bit arches broken by me in r261882.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 7983ac7..8b9be0b 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <limits.h>
#include <netdb.h>
#include <stdio.h>
@@ -791,17 +792,17 @@ pfctl_print_rule_counters(struct pf_rule *rule, int opts)
}
if (opts & PF_OPT_VERBOSE) {
printf(" [ Evaluations: %-8llu Packets: %-8llu "
- "Bytes: %-10llu States: %-6lu]\n",
+ "Bytes: %-10llu States: %-6ju]\n",
(unsigned long long)rule->evaluations,
(unsigned long long)(rule->packets[0] +
rule->packets[1]),
(unsigned long long)(rule->bytes[0] +
- rule->bytes[1]), (uint64_t)rule->states_cur);
+ rule->bytes[1]), (uintmax_t)rule->states_cur);
if (!(opts & PF_OPT_DEBUG))
printf(" [ Inserted: uid %u pid %u "
- "State Creations: %-6lu]\n",
+ "State Creations: %-6ju]\n",
(unsigned)rule->cuid, (unsigned)rule->cpid,
- (uint64_t)rule->states_tot);
+ (uintmax_t)rule->states_tot);
}
}
OpenPOWER on IntegriCloud