Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/shmif_dumpbus make the code also correctly correct, ...



details:   https://anonhg.NetBSD.org/src/rev/fcd02c8aadbe
branches:  trunk
changeset: 763226:fcd02c8aadbe
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Mar 14 11:10:35 2011 +0000

description:
make the code also correctly correct, not just xxxgcc'ly correct

diffstat:

 usr.bin/shmif_dumpbus/shmif_dumpbus.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r dbadde22e924 -r fcd02c8aadbe usr.bin/shmif_dumpbus/shmif_dumpbus.c
--- a/usr.bin/shmif_dumpbus/shmif_dumpbus.c     Mon Mar 14 11:08:28 2011 +0000
+++ b/usr.bin/shmif_dumpbus/shmif_dumpbus.c     Mon Mar 14 11:10:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shmif_dumpbus.c,v 1.5 2011/03/14 11:08:28 pooka Exp $  */
+/*     $NetBSD: shmif_dumpbus.c,v 1.6 2011/03/14 11:10:35 pooka Exp $  */
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -171,7 +171,7 @@
                        continue;
                }
 
-               if (!isstdout)
+               if (pcapfile && !isstdout)
                        printf("packet %d, offset 0x%04x, length 0x%04x, "
                            "ts %d/%06d\n", i++, curbus,
                            curlen, SWAPME(sp.sp_sec), SWAPME(sp.sp_usec));



Home | Main Index | Thread Index | Old Index