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 aaaand actually make the logic clause ...
details: https://anonhg.NetBSD.org/src/rev/fe57641a5348
branches: trunk
changeset: 763227:fe57641a5348
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Mar 14 11:13:22 2011 +0000
description:
aaaand actually make the logic clause correct
diffstat:
usr.bin/shmif_dumpbus/shmif_dumpbus.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fcd02c8aadbe -r fe57641a5348 usr.bin/shmif_dumpbus/shmif_dumpbus.c
--- a/usr.bin/shmif_dumpbus/shmif_dumpbus.c Mon Mar 14 11:10:35 2011 +0000
+++ b/usr.bin/shmif_dumpbus/shmif_dumpbus.c Mon Mar 14 11:13:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shmif_dumpbus.c,v 1.6 2011/03/14 11:10:35 pooka Exp $ */
+/* $NetBSD: shmif_dumpbus.c,v 1.7 2011/03/14 11:13:22 pooka Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -138,7 +138,7 @@
isstdout = false;
pdump = NULL;
}
-
+
curbus = SWAPME(bmem->shm_first);
buslast = SWAPME(bmem->shm_last);
if (curbus == BUSMEM_DATASIZE)
@@ -171,7 +171,7 @@
continue;
}
- if (pcapfile && !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