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/6026ae1c00d4
branches:  trunk
changeset: 371166:6026ae1c00d4
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 ab8c52985755 -r 6026ae1c00d4 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