summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2012-01-31 08:57:36 +0000
committermartin <martin@NetBSD.org>2012-01-31 08:57:36 +0000
commit9958ad55add90fb74816c718b7db78285980d66e (patch)
tree8928bd55bec5b62b804901349f4a4028f6ca926e /dist
parenta7d330374c2cd9a3846d192020b7359a1ddc1e9b (diff)
More printf format fixes
Diffstat (limited to 'dist')
-rw-r--r--dist/ipf/tools/ipfstat.c12
-rw-r--r--dist/ipf/tools/ipftest.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/dist/ipf/tools/ipfstat.c b/dist/ipf/tools/ipfstat.c
index 3bae75007ed..5e309cdacec 100644
--- a/dist/ipf/tools/ipfstat.c
+++ b/dist/ipf/tools/ipfstat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ipfstat.c,v 1.19 2012/01/30 16:12:05 darrenr Exp $ */
+/* $NetBSD: ipfstat.c,v 1.20 2012/01/31 08:57:36 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -834,13 +834,13 @@ static void printlivelist(fiop, out, set, fp, group, comment)
if (opts & (OPT_HITS|OPT_VERBOSE))
#ifdef USE_QUAD_T
- PRINTF("%"PRIu64" ", (unsigned long long) fp->fr_hits);
+ PRINTF("%llu ", (unsigned long long) fp->fr_hits);
#else
PRINTF("%lu ", fp->fr_hits);
#endif
if (opts & (OPT_ACCNT|OPT_VERBOSE))
#ifdef USE_QUAD_T
- PRINTF("%"PRIu64" ", (unsigned long long) fp->fr_bytes);
+ PRINTF("%llu ", (unsigned long long) fp->fr_bytes);
#else
PRINTF("%lu ", fp->fr_bytes);
#endif
@@ -951,13 +951,13 @@ static void printdeadlist(fiop, out, set, fp, group, comment)
if (opts & (OPT_HITS|OPT_VERBOSE))
#ifdef USE_QUAD_T
- PRINTF("%"PRIu64" ", (unsigned long long) fb.fr_hits);
+ PRINTF("%llu ", (unsigned long long) fb.fr_hits);
#else
PRINTF("%lu ", fb.fr_hits);
#endif
if (opts & (OPT_ACCNT|OPT_VERBOSE))
#ifdef USE_QUAD_T
- PRINTF("%"PRIu64" ", (unsigned long long) fb.fr_bytes);
+ PRINTF("%llu ", (unsigned long long) fb.fr_bytes);
#else
PRINTF("%lu ", fb.fr_bytes);
#endif
@@ -1772,7 +1772,7 @@ static void showauthstates(asp)
auth.igi_data = &fra;
#ifdef USE_QUAD_T
- printf("Authorisation hits: %"PRIu64"\tmisses %"PRIu64"\n",
+ printf("Authorisation hits: %llu\tmisses %llu\n",
(unsigned long long) asp->fas_hits,
(unsigned long long) asp->fas_miss);
#else
diff --git a/dist/ipf/tools/ipftest.c b/dist/ipf/tools/ipftest.c
index 7cc9b5aa12e..c90b8446235 100644
--- a/dist/ipf/tools/ipftest.c
+++ b/dist/ipf/tools/ipftest.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ipftest.c,v 1.1.1.7 2012/01/30 16:03:47 darrenr Exp $ */
+/* $NetBSD: ipftest.c,v 1.2 2012/01/31 09:06:12 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -736,7 +736,7 @@ void dumprules(rulehead)
for (fr = rulehead; fr != NULL; fr = fr->fr_next) {
#ifdef USE_QUAD_T
- printf("%"PRIu64" ",(unsigned long long)fr->fr_hits);
+ printf("%llu ",(unsigned long long)fr->fr_hits);
#else
printf("%ld ", fr->fr_hits);
#endif