diff options
author | 2015-10-16 12:17:58 +0000 | |
---|---|---|
committer | 2015-10-16 12:17:58 +0000 | |
commit | c4e86d153302638823878c606f1e684032a1a64a (patch) | |
tree | b08a3eaab33d86186a4bff1fab456229448df259 | |
parent | Clean up iwm(4) scanning logic a bit: Reset sc_scanband in callers of (diff) | |
download | wireguard-openbsd-c4e86d153302638823878c606f1e684032a1a64a.tar.xz wireguard-openbsd-c4e86d153302638823878c606f1e684032a1a64a.zip |
Put some iwm(4) debug code into #ifdef IWM_DEBUG.
ok mpi@
-rw-r--r-- | sys/dev/pci/if_iwm.c | 6 |
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 |