Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat Fix printing formats.



details:   https://anonhg.NetBSD.org/src/rev/ebb0e76f1a08
branches:  trunk
changeset: 583417:ebb0e76f1a08
user:      elad <elad%NetBSD.org@localhost>
date:      Fri Aug 05 12:16:51 2005 +0000

description:
Fix printing formats.

diffstat:

 usr.bin/netstat/bpf.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r b59456cad77b -r ebb0e76f1a08 usr.bin/netstat/bpf.c
--- a/usr.bin/netstat/bpf.c     Fri Aug 05 11:14:32 2005 +0000
+++ b/usr.bin/netstat/bpf.c     Fri Aug 05 12:16:51 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.1 2005/08/04 19:39:40 rpaulo Exp $ */
+/* $NetBSD: bpf.c,v 1.2 2005/08/05 12:16:51 elad Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -62,9 +62,9 @@
                err(1, "net.bpf.stats");
        
        printf("bpf:\n");
-       printf("\t%lld total packets received\n", bpf_s.bs_recv);
-       printf("\t%lld total packets captured\n", bpf_s.bs_capt);
-       printf("\t%lld total packets dropped\n", bpf_s.bs_drop);
+       printf("\t%" PRIu64 " total packets received\n", bpf_s.bs_recv);
+       printf("\t%" PRIu64 " total packets captured\n", bpf_s.bs_capt);
+       printf("\t%" PRIu64 " total packets dropped\n", bpf_s.bs_drop);
 }
 
 void
@@ -122,7 +122,7 @@
                       (BPFEXT(bde_ifname)[0] == '\0') ? "-" : 
                       BPFEXT(bde_ifname));
 
-               printf("%-8lld %-8lld %-8lld ", 
+               printf("%-8" PRIu64 " %-8" PRIu64 " %-8" PRIu64 " ", 
                        BPFEXT(bde_rcount), BPFEXT(bde_dcount), 
                        BPFEXT(bde_ccount));
                



Home | Main Index | Thread Index | Old Index