From db454f263c203ab9a08994dadaaeb85248274005 Mon Sep 17 00:00:00 2001 From: pooka Date: Mon, 14 Mar 2011 11:10:35 +0000 Subject: [PATCH] make the code also correctly correct, not just xxxgcc'ly correct --- usr.bin/shmif_dumpbus/shmif_dumpbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/shmif_dumpbus/shmif_dumpbus.c b/usr.bin/shmif_dumpbus/shmif_dumpbus.c index 7ed0569c93a4..f781ecebcba6 100644 --- a/usr.bin/shmif_dumpbus/shmif_dumpbus.c +++ b/usr.bin/shmif_dumpbus/shmif_dumpbus.c @@ -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 @@ main(int argc, char *argv[]) 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));