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/d5eba0c861b0
branches:  trunk
changeset: 1027039:d5eba0c861b0
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 0c18efd73d27 -r d5eba0c861b0 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 @@
        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 @@
 {
        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 @@
        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 @@
        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 @@
 
        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 @@
        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