summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-10-05 21:26:55 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-10-05 21:26:55 +0000
commit38b8c20a261c492d50ce8874662f5b8ecbd7f2e6 (patch)
tree0e0c4313102250564533906c91ab99e02e651458 /sys/dev
parent45c0f4b1a790d48f371725498f413084e1326d11 (diff)
Hide wpi(4) fatal firmware error details inside #ifdef WPI_DEBUG.
ok sthen tb deraadt
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_wpi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index 6d8337da438..ee2c24c9c54 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.135 2016/09/05 08:18:40 tedu Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.136 2016/10/05 21:26:54 stsp Exp $ */
/*-
* Copyright (c) 2006-2008
@@ -1526,6 +1526,7 @@ wpi_notif_intr(struct wpi_softc *sc)
WPI_WRITE(sc, WPI_FH_RX_WPTR, hw & ~7);
}
+#ifdef WPI_DEBUG
/*
* Dump the error log of the firmware when a firmware panic occurs. Although
* we can't debug the firmware because it is neither open source nor free, it
@@ -1593,6 +1594,7 @@ wpi_fatal_intr(struct wpi_softc *sc)
printf(" 802.11 state %d\n", sc->sc_ic.ic_state);
#undef N
}
+#endif
int
wpi_intr(void *arg)
@@ -1622,7 +1624,9 @@ wpi_intr(void *arg)
if (r1 & (WPI_INT_SW_ERR | WPI_INT_HW_ERR)) {
printf("%s: fatal firmware error\n", sc->sc_dev.dv_xname);
/* Dump firmware error log and stop. */
+#ifdef WPI_DEBUG
wpi_fatal_intr(sc);
+#endif
wpi_stop(ifp, 1);
task_add(systq, &sc->init_task);
return 1;