Source-Changes-HG archive

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

[src/trunk]: src/dist/ipf/lib Fix printf formats (those who can't decide weth...



details:   https://anonhg.NetBSD.org/src/rev/bbf794724c16
branches:  trunk
changeset: 773333:bbf794724c16
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 31 08:43:44 2012 +0000

description:
Fix printf formats (those who can't decide wether to use casts or PRI*
macros do both in bogus combination)

diffstat:

 dist/ipf/lib/printactivenat.c |  4 ++--
 dist/ipf/lib/printaps.c       |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d2eeccd1b4c4 -r bbf794724c16 dist/ipf/lib/printactivenat.c
--- a/dist/ipf/lib/printactivenat.c     Tue Jan 31 05:08:14 2012 +0000
+++ b/dist/ipf/lib/printactivenat.c     Tue Jan 31 08:43:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printactivenat.c,v 1.1.1.4 2012/01/30 16:03:22 darrenr Exp $   */
+/*     $NetBSD: printactivenat.c,v 1.2 2012/01/31 08:43:44 martin Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -113,7 +113,7 @@
                PRINTF("\tifp %s", getifname(nat->nat_ifps[0]));
                PRINTF(",%s ", getifname(nat->nat_ifps[1]));
 #ifdef USE_QUAD_T
-               PRINTF("bytes %"PRIu64"/%"PRIu64" pkts %"PRIu64"/%"PRIu64"",
+               PRINTF("bytes %llu/%llu pkts %llu/%llu",
                        (unsigned long long)nat->nat_bytes[0],
                        (unsigned long long)nat->nat_bytes[1],
                        (unsigned long long)nat->nat_pkts[0],
diff -r d2eeccd1b4c4 -r bbf794724c16 dist/ipf/lib/printaps.c
--- a/dist/ipf/lib/printaps.c   Tue Jan 31 05:08:14 2012 +0000
+++ b/dist/ipf/lib/printaps.c   Tue Jan 31 08:43:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printaps.c,v 1.1.1.3 2012/01/30 16:03:22 darrenr Exp $ */
+/*     $NetBSD: printaps.c,v 1.2 2012/01/31 08:43:44 martin Exp $      */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -35,7 +35,7 @@
        PRINTF("\tproxy %s/%d use %d flags %x\n", apr.apr_label,
                apr.apr_p, apr.apr_ref, apr.apr_flags);
 #ifdef USE_QUAD_T
-       PRINTF("%"PRIu64" pkts %"PRIu64"", (unsigned long long)ap.aps_bytes,
+       PRINTF("%llu pkts %llu", (unsigned long long)ap.aps_bytes,
                (unsigned long long)ap.aps_pkts);
 #else
        PRINTF("%lu pkts %lu", ap.aps_bytes, ap.aps_pkts);



Home | Main Index | Thread Index | Old Index