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 Make debug code compile.



details:   https://anonhg.NetBSD.org/src-all/rev/a6b80d6fa7ef
branches:  trunk
changeset: 370604:a6b80d6fa7ef
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Tue Sep 20 18:28:12 2022 +0200

description:
Make debug code compile.

diffstat:

 sys/dev/pci/if_iwn.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 171ed8ce777b -r a6b80d6fa7ef sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Mon Aug 15 17:45:30 2022 +0200
+++ b/sys/dev/pci/if_iwn.c      Tue Sep 20 18:28:12 2022 +0200
@@ -845,7 +845,7 @@
 {
        struct iwn_vap *my_vap = (struct iwn_vap *)vap;
 
-       DPRINTFN(DBG_FN, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
+       DPRINTFN(DBG_FN, ("%s: %s\n", vap->iv_ifp->if_xname, __func__));
 
        ieee80211_vap_detach(vap);
        kmem_free(my_vap, sizeof(*my_vap));
@@ -997,7 +997,7 @@
 {
        struct iwn_vap *vap;
 
-       DPRINTFN(DBG_FN, ("%s: %s\n", device_xname(sc->sc_dev), __func__));
+       DPRINTFN(DBG_FN, ("%s: %s\n", ic->ic_name, __func__));
 
        /* Allow only one VAP for the iwn driver. */
        if (!TAILQ_EMPTY(&ic->ic_vaps))



Home | Main Index | Thread Index | Old Index