From owner-p4-projects@FreeBSD.ORG Wed Jun 13 01:59:53 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E962716A46C; Wed, 13 Jun 2007 01:59:52 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C15916A469 for ; Wed, 13 Jun 2007 01:59:52 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB3013C45A for ; Wed, 13 Jun 2007 01:59:52 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5D1xqcm075462 for ; Wed, 13 Jun 2007 01:59:52 GMT (envelope-from thompsa@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5D1xqva075441 for perforce@freebsd.org; Wed, 13 Jun 2007 01:59:52 GMT (envelope-from thompsa@freebsd.org) Date: Wed, 13 Jun 2007 01:59:52 GMT Message-Id: <200706130159.l5D1xqva075441@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to thompsa@freebsd.org using -f From: Andrew Thompson To: Perforce Change Reviews Cc: Subject: PERFORCE change 121554 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 01:59:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=121554 Change 121554 by thompsa@thompsa_heff on 2007/06/13 01:58:56 Sprinkle a few more basic debugging printfs. Affected files ... .. //depot/projects/wifi/sys/dev/wi/if_wi.c#35 edit Differences ... ==== //depot/projects/wifi/sys/dev/wi/if_wi.c#35 (text+ko) ==== @@ -190,7 +190,7 @@ #define WI_DEBUG #ifdef WI_DEBUG -static int wi_debug = 0; +static int wi_debug = 100; SYSCTL_INT(_hw_wi, OID_AUTO, debug, CTLFLAG_RW, &wi_debug, 0, "control debugging printfs"); @@ -674,6 +674,7 @@ int error = 0, wasenabled; + DPRINTF(("%s\n", __func__)); if (sc->wi_gone) return; @@ -879,6 +880,7 @@ ieee80211_new_state(ic, IEEE80211_S_INIT, -1); + DPRINTF(("%s\n", __func__)); DELAY(100000); WI_LOCK(sc); if (sc->sc_enabled && !sc->wi_gone) { @@ -1053,6 +1055,7 @@ } sc->sc_txd[cur].d_len = off; if (sc->sc_txcur == cur) { + DPRINTF2(("%s: xmit frame, idx=%d\n", __func__, cur)); if (wi_cmd(sc, WI_CMD_TX | WI_RECLAIM, fid, 0, 0)) { if_printf(ifp, "xmit failed\n"); sc->sc_txd[cur].d_len = 0; @@ -1162,6 +1165,7 @@ int error = 0; int tries; + DPRINTF(("%s\n", __func__)); /* Symbol firmware cannot be initialized more than once */ if (sc->sc_firmware_type == WI_SYMBOL && sc->sc_reset) return (0); @@ -2550,6 +2554,7 @@ u_int16_t val; struct wi_key wkey[IEEE80211_WEP_NKID]; + DPRINTF(("%s\n", __func__)); switch (sc->sc_firmware_type) { case WI_LUCENT: val = (ic->ic_flags & IEEE80211_F_PRIVACY) ? 1 : 0; @@ -2660,6 +2665,8 @@ { int i, s = 0; + DPRINTF2(("%s: cmd=%d val0=%d val1=%d val2=%d\n", + __func__, cmd, val0, val1, val2)); if (sc->wi_gone) return (ENODEV); @@ -3000,6 +3007,7 @@ int error = 0; u_int16_t val[2]; + DPRINTF(("%s\n", __func__)); if (!sc->sc_enabled) return ENXIO; switch (sc->sc_firmware_type) { @@ -3042,7 +3050,7 @@ struct ieee80211com *ic; uint8_t ssid[2+IEEE80211_NWID_LEN]; - printf("wi_scan_result\n"); + DPRINTF(("%s\n", __func__)); ic = &sc->sc_ic; rstamp++; memset(&sp, 0, sizeof(sp)); @@ -3519,6 +3527,7 @@ struct ifnet *ifp = ic->ic_ifp; struct wi_softc *sc = ifp->if_softc; + DPRINTF(("%s\n", __func__)); WI_LOCK(sc); sc->sc_flags |= WI_FLAGS_SCANNING; wi_scan_ap(sc, 0x3fff, 0x000f);