diff options
author | 2017-05-04 09:03:42 +0000 | |
---|---|---|
committer | 2017-05-04 09:03:42 +0000 | |
commit | b52eabe353c9c2cf501701a34c7dfbcad061817e (patch) | |
tree | b1922ddbc2d7878b4688743ea2a3fda8d4622132 | |
parent | Add support for rdomains. (diff) | |
download | wireguard-openbsd-b52eabe353c9c2cf501701a34c7dfbcad061817e.tar.xz wireguard-openbsd-b52eabe353c9c2cf501701a34c7dfbcad061817e.zip |
If iwm_nic_lock() cannot access the device then print "acquiring device failed"
instead of "device timeout". The latter is printed by the Tx watchdog already.
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 215eef9f75d..4f94abb8c92 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.177 2017/04/27 06:14:23 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.178 2017/05/04 09:03:42 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -920,7 +920,7 @@ iwm_nic_lock(struct iwm_softc *sc) | IWM_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP, 15000)) { rv = 1; } else { - printf("%s: device timeout\n", DEVNAME(sc)); + printf("%s: acquiring device failed\n", DEVNAME(sc)); IWM_WRITE(sc, IWM_CSR_RESET, IWM_CSR_RESET_REG_FLAG_FORCE_NMI); } |