diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-01-20 10:49:56 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-01-20 10:49:56 +0000 |
commit | a765cc9480bc8f58af3673cc9075ba6b68438585 (patch) | |
tree | ab976bbb35126eea8409ed1f5056d95b409e3e8a /sys | |
parent | cb3cea1eff3bae361039985255673b7cb2b8c82d (diff) |
Adjust level 1 debug messages.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_upgt.c | 8 |
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. */ |