summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-07-19 21:40:01 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-07-19 21:40:01 +0000
commit5c1d424d93ed6da7230695752640bfdd9ff3c1f1 (patch)
tree3c8c581a36bed890ef044fb355081cb79e3337ba /sys/dev/pci
parentd9cc42f197caa0ebd49174693694b0d5b5e5acb9 (diff)
Make iwm(4) show command codes of unhandled firmware replies. Should make
debugging easier when it happens, as observed by matthieu@ (not reproducible on demand, unfortunately). ok mpi@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 205f037e443..e8b58db85d5 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.45 2015/06/15 08:06:11 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.46 2015/07/19 21:40:00 stsp Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
@@ -6114,9 +6114,10 @@ iwm_notif_intr(struct iwm_softc *sc)
break;
default:
- printf("%s: frame %d/%d %x UNHANDLED (this should "
- "not happen)\n", DEVNAME(sc), qid, idx,
- pkt->len_n_flags);
+ printf("%s: unhandled firmware response 0x%x/0x%x "
+ "rx ring %d[%d]\n",
+ DEVNAME(sc), pkt->hdr.code, pkt->len_n_flags, qid,
+ idx);
break;
}