summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2008-01-20 10:49:55 +0000
committermglocker <mglocker@openbsd.org>2008-01-20 10:49:55 +0000
commitcec10f703ef44919c685a05c33ea69a88c066c89 (patch)
tree0034f766e7792f6cebcf2a5740d7f904b54ba56d /sys/dev
parentWhen uploading, correctly handle the case of an unquoted filename with (diff)
downloadwireguard-openbsd-cec10f703ef44919c685a05c33ea69a88c066c89.tar.xz
wireguard-openbsd-cec10f703ef44919c685a05c33ea69a88c066c89.zip
Adjust level 1 debug messages.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_upgt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index 6ff4a2ba2bc..d5fdf5de994 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.21 2008/01/20 00:14:41 mglocker Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.22 2008/01/20 10:49:55 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -445,6 +445,8 @@ upgt_detach(struct device *self, int flags)
struct ifnet *ifp = &sc->sc_ic.ic_if;
int s;
+ DPRINTF(1, "%s: %s\n", sc->sc_dev.dv_xname, __func__);
+
s = splusb();
/* abort and close TX / RX pipes */
@@ -1207,6 +1209,8 @@ upgt_stop(struct upgt_softc *sc)
struct ieee80211com *ic = &sc->sc_ic;
struct ifnet *ifp = &ic->ic_if;
+ DPRINTF(1, "%s: %s\n", sc->sc_dev.dv_xname, __func__);
+
/* device down */
ifp->if_timer = 0;
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
@@ -1974,8 +1978,6 @@ upgt_get_stats(struct upgt_softc *sc)
struct upgt_lmac_stats *stats;
int len;
- DPRINTF(1, "%s: %s\n", sc->sc_dev.dv_xname, __func__);
-
/*
* Transmit the URB containing the CMD data.
*/