Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Fix compilation with debugging enabled.
details: https://anonhg.NetBSD.org/src-all/rev/7e57381e8f51
branches: trunk
changeset: 375084:7e57381e8f51
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Thu Oct 08 20:27:33 2020 +0200
description:
Fix compilation with debugging enabled.
diffstat:
sys/dev/pci/if_iwn.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (57 lines):
diff -r 8c618ae54d4f -r 7e57381e8f51 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Thu Oct 08 20:26:54 2020 +0200
+++ b/sys/dev/pci/if_iwn.c Thu Oct 08 20:27:33 2020 +0200
@@ -819,7 +819,7 @@ iwn_vap_delete(struct ieee80211vap *vap)
struct ifnet *ifp = vap->iv_ifp;
struct iwn_softc *sc __unused =vap->iv_ic->ic_softc;
- DPRINTFN(3, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
iwn_stop(ifp, 0);
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
@@ -948,7 +948,7 @@ iwn_parent(struct ieee80211com *ic)
{
struct iwn_softc *sc __unused = ic->ic_softc;
- DPRINTFN(3, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
/* Not sure what to do here yet. */
}
@@ -963,7 +963,7 @@ iwn_vap_create(struct ieee80211com *ic,
struct ieee80211vap *vap;
struct ifnet *ifp;
- DPRINTFN(3, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
/* Allow only one VAP for the iwn driver. */
if (!TAILQ_EMPTY(&ic->ic_vaps))
@@ -3287,7 +3287,7 @@ iwn_transmit(struct ieee80211com *ic, st
size_t pktlen = m->m_pkthdr.len;
bool mcast = (m->m_flags & M_MCAST) != 0;
- DPRINTFN(3, ("%s: %s\n",ic->ic_name, __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n",vap->iv_ic->ic_name, __func__));
s = splnet();
@@ -3311,7 +3311,7 @@ iwn_send_mgmt(struct ieee80211_node *ni,
struct iwn_softc *sc = ni->ni_vap->iv_ic->ic_softc;
- DPRINTFN(3, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
/* Don't know what to do right now. */
return ENOTTY;
@@ -3330,7 +3330,7 @@ iwn_raw_xmit(struct ieee80211_node *ni ,
struct ether_header *eh;
int ac;
- DPRINTFN(3, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
+ DPRINTFN(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
KASSERT(vap != NULL); /* NNN need these? */
KASSERT(ic != NULL);
Home |
Main Index |
Thread Index |
Old Index