Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Wrap debug code in {} because "a label can only ...
details: https://anonhg.NetBSD.org/src/rev/b83ed7ee30d7
branches: trunk
changeset: 791508:b83ed7ee30d7
user: riz <riz%NetBSD.org@localhost>
date: Thu Nov 21 21:14:05 2013 +0000
description:
Wrap debug code in {} because "a label can only be part of a statement and
a declaration is not a statement." I.e., make it a statement by making
it part of a block.
diffstat:
sys/dev/pci/if_iwi.c | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diffs (54 lines):
diff -r ace43c8a3512 -r b83ed7ee30d7 sys/dev/pci/if_iwi.c
--- a/sys/dev/pci/if_iwi.c Thu Nov 21 19:12:40 2013 +0000
+++ b/sys/dev/pci/if_iwi.c Thu Nov 21 21:14:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwi.c,v 1.93 2013/10/17 21:06:15 christos Exp $ */
+/* $NetBSD: if_iwi.c,v 1.94 2013/11/21 21:14:05 riz Exp $ */
/* $OpenBSD: if_iwi.c,v 1.111 2010/11/15 19:11:57 damien Exp $ */
/*-
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.93 2013/10/17 21:06:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.94 2013/11/21 21:14:05 riz Exp $");
/*-
* Intel(R) PRO/Wireless 2200BG/2225BG/2915ABG driver
@@ -1240,21 +1240,25 @@
switch (notif->type) {
case IWI_NOTIF_TYPE_SCAN_CHANNEL:
#ifdef IWI_DEBUG
- struct iwi_notif_scan_channel *chan =
- (struct iwi_notif_scan_channel *)(notif + 1);
-
- DPRINTFN(2, ("Scan of channel %u complete (%u)\n",
- ic->ic_channels[chan->nchan].ic_freq, chan->nchan));
+ {
+ struct iwi_notif_scan_channel *chan =
+ (struct iwi_notif_scan_channel *)(notif + 1);
+
+ DPRINTFN(2, ("Scan of channel %u complete (%u)\n",
+ ic->ic_channels[chan->nchan].ic_freq, chan->nchan));
+ }
#endif
break;
case IWI_NOTIF_TYPE_SCAN_COMPLETE:
#ifdef IWI_DEBUG
- struct iwi_notif_scan_complete *scan =
- (struct iwi_notif_scan_complete *)(notif + 1);
-
- DPRINTFN(2, ("Scan completed (%u, %u)\n", scan->nchan,
- scan->status));
+ {
+ struct iwi_notif_scan_complete *scan =
+ (struct iwi_notif_scan_complete *)(notif + 1);
+
+ DPRINTFN(2, ("Scan completed (%u, %u)\n", scan->nchan,
+ scan->status));
+ }
#endif
/* monitor mode uses scan to set the channel ... */
Home |
Main Index |
Thread Index |
Old Index