summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-22 21:52:12 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-22 21:52:12 +0000
commit57987a3995600abaa83e305954a9b58683997afb (patch)
treef30f462f29072719b80af1b9c97216c8a33ef8b7 /sbin
parentbdee604205b7485ae7e9cb0b6d1aa2e2553297a9 (diff)
correct printf arg mismatch (in 64bit arch). dhartmei ok
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 2c7c91a6511..00476fa13da 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.173 2003/08/21 19:12:08 frantzen Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.174 2003/08/22 21:52:11 itojun Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -525,8 +525,8 @@ print_status(struct pf_status *s)
printf("%-27s %14s %16s\n", "State Table", "Total", "Rate");
printf(" %-25s %14u %14s\n", "current entries", s->states, "");
for (i = 0; i < FCNT_MAX; i++) {
- printf(" %-25s %14lld ", pf_fcounters[i],
- s->fcounters[i]);
+ printf(" %-25s %14llu", pf_fcounters[i],
+ (unsigned long long)s->fcounters[i]);
if (runtime > 0)
printf("%14.1f/s\n",
(double)s->fcounters[i] / (double)runtime);
@@ -535,8 +535,8 @@ print_status(struct pf_status *s)
}
printf("Counters\n");
for (i = 0; i < PFRES_MAX; i++) {
- printf(" %-25s %14lld ", pf_reasons[i],
- s->counters[i]);
+ printf(" %-25s %14llu ", pf_reasons[i],
+ (unsigned long long)s->counters[i]);
if (runtime > 0)
printf("%14.1f/s\n",
(double)s->counters[i] / (double)runtime);