From a765cc9480bc8f58af3673cc9075ba6b68438585 Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Sun, 20 Jan 2008 10:49:56 +0000 Subject: Adjust level 1 debug messages. --- sys/dev/usb/if_upgt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb') 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 @@ -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. */ -- cgit v1.2.3