diff options
author | 2015-09-26 10:52:09 +0000 | |
---|---|---|
committer | 2015-09-26 10:52:09 +0000 | |
commit | 0ffa1b10a6f5521749888d7a7eb5fc4c05c51dbd (patch) | |
tree | 9d42320a4a2500234aca436420ee807fada14e6f | |
parent | xheart_splx() has to restore the interrupt mask even on secondary CPUs (diff) | |
download | wireguard-openbsd-0ffa1b10a6f5521749888d7a7eb5fc4c05c51dbd.tar.xz wireguard-openbsd-0ffa1b10a6f5521749888d7a7eb5fc4c05c51dbd.zip |
Make iwm(4) DPRINTFs show states by name instead of number.
-rw-r--r-- | sys/dev/pci/if_iwm.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 06db4443fb8..c59f35fde67 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.48 2015/09/23 17:22:18 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.49 2015/09/26 10:52:09 stsp Exp $ */ /* * Copyright (c) 2014 genua mbh <info@genua.de> @@ -5279,7 +5279,9 @@ iwm_newstate_cb(void *wk) free(iwmns, M_DEVBUF, sizeof(*iwmns)); - DPRINTF(("Prepare to switch state %d->%d\n", ic->ic_state, nstate)); + DPRINTF(("Prepare to switch state %s->%s\n", + ieee80211_state_name[ic->ic_state], + ieee80211_state_name[nstate])); if (sc->sc_generation != generation) { DPRINTF(("newstate_cb: someone pulled the plug meanwhile\n")); if (nstate == IEEE80211_S_INIT) { @@ -5289,7 +5291,9 @@ iwm_newstate_cb(void *wk) return; } - DPRINTF(("switching state %d->%d\n", ic->ic_state, nstate)); + DPRINTF(("switching state %s->%s\n", + ieee80211_state_name[ic->ic_state], + ieee80211_state_name[nstate])); if (ic->ic_state == IEEE80211_S_SCAN && nstate != ic->ic_state) iwm_led_blink_stop(sc); @@ -6229,7 +6233,8 @@ iwm_intr(void *arg) i, ring->qid, ring->cur, ring->queued)); } DPRINTF((" rx ring: cur=%d\n", sc->rxq.cur)); - DPRINTF((" 802.11 state %d\n", sc->sc_ic.ic_state)); + DPRINTF((" 802.11 state %s\n", + ieee80211_state_name[sc->sc_ic.ic_state])); #endif printf("%s: fatal firmware error\n", DEVNAME(sc)); |