Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/ipf/tools More printf format fixes



details:   https://anonhg.NetBSD.org/src/rev/b25944ef9b8e
branches:  trunk
changeset: 773334:b25944ef9b8e
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 31 08:57:36 2012 +0000

description:
More printf format fixes

diffstat:

 dist/ipf/tools/ipfstat.c |  12 ++++++------
 dist/ipf/tools/ipftest.c |   4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (68 lines):

diff -r bbf794724c16 -r b25944ef9b8e dist/ipf/tools/ipfstat.c
--- a/dist/ipf/tools/ipfstat.c  Tue Jan 31 08:43:44 2012 +0000
+++ b/dist/ipf/tools/ipfstat.c  Tue Jan 31 08:57:36 2012 +0000
@@ -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 @@
 
                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 @@
 
                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 @@
        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 -r bbf794724c16 -r b25944ef9b8e dist/ipf/tools/ipftest.c
--- a/dist/ipf/tools/ipftest.c  Tue Jan 31 08:43:44 2012 +0000
+++ b/dist/ipf/tools/ipftest.c  Tue Jan 31 08:57:36 2012 +0000
@@ -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 @@
 
        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



Home | Main Index | Thread Index | Old Index