summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-16 12:17:59 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-16 12:17:59 +0000
commitc8072beb7134ac6957f09891d2c76c081384969c (patch)
treedee593273a2da99026be99016a84a0c45e6279a2 /sys/dev/pci
parent389b2f4b01c32a4c55b705672302c2950668d036 (diff)
Put some iwm(4) debug code into #ifdef IWM_DEBUG.
ok mpi@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 9df868a9eaf..600e8c17286 100644
--- a/sys/dev/pci/if_iwm.c
+++ b/sys/dev/pci/if_iwm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwm.c,v 1.59 2015/10/16 12:17:38 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.60 2015/10/16 12:17:58 stsp Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
@@ -407,8 +407,8 @@ void iwm_start(struct ifnet *);
void iwm_stop(struct ifnet *, int);
void iwm_watchdog(struct ifnet *);
int iwm_ioctl(struct ifnet *, u_long, iwm_caddr_t);
-const char *iwm_desc_lookup(uint32_t);
#ifdef IWM_DEBUG
+const char *iwm_desc_lookup(uint32_t);
void iwm_nic_error(struct iwm_softc *);
#endif
void iwm_notif_intr(struct iwm_softc *);
@@ -5759,6 +5759,7 @@ iwm_ioctl(struct ifnet *ifp, u_long cmd, iwm_caddr_t data)
* The interrupt side of things
*/
+#ifdef IWM_DEBUG
/*
* Note: This structure is read from the device with IO accesses,
* and the reading already does the endian conversion. As it is
@@ -5850,7 +5851,6 @@ iwm_desc_lookup(uint32_t num)
return advanced_lookup[i].name;
}
-#ifdef IWM_DEBUG
/*
* Support for dumping the error log seemed like a good idea ...
* but it's mostly hex junk and the only sensible thing is the