Module Name: src
Committed By: pooka
Date: Mon Mar 14 11:10:35 UTC 2011
Modified Files:
src/usr.bin/shmif_dumpbus: shmif_dumpbus.c
Log Message:
make the code also correctly correct, not just xxxgcc'ly correct
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/shmif_dumpbus/shmif_dumpbus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/shmif_dumpbus/shmif_dumpbus.c
diff -u src/usr.bin/shmif_dumpbus/shmif_dumpbus.c:1.5 src/usr.bin/shmif_dumpbus/shmif_dumpbus.c:1.6
--- src/usr.bin/shmif_dumpbus/shmif_dumpbus.c:1.5 Mon Mar 14 11:08:28 2011
+++ src/usr.bin/shmif_dumpbus/shmif_dumpbus.c Mon Mar 14 11:10:35 2011
@@ -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));