Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Better choice of print function for wifi ...



details:   https://anonhg.NetBSD.org/src-all/rev/a4de3b317b2f
branches:  trunk
changeset: 370812:a4de3b317b2f
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue May 12 13:18:37 2020 +1000

description:
Better choice of print function for wifi rates.

diffstat:

 sys/net80211/ieee80211.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 9288cf7fd4ce -r a4de3b317b2f sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c  Tue May 12 13:04:08 2020 +1000
+++ b/sys/net80211/ieee80211.c  Tue May 12 13:18:37 2020 +1000
@@ -2049,10 +2049,10 @@
                        if (mword == 0)
                                continue;
                        rate = ieee80211_media2rate(mword);
-                       ic_printf(ic, "%s%d%sMbps", (i != 0 ? " " : ""),
+                       aprint_normal("%s%d%sMbps", (i != 0 ? " " : ""),
                            rate / 2, ((rate & 0x1) != 0 ? ".5" : ""));
                }
-               aprint_debug("\n");
+               aprint_normal("\n");
        }
        ieee80211_ht_announce(ic);
        ieee80211_vht_announce(ic);



Home | Main Index | Thread Index | Old Index