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/9c9d208fc0b6
branches:  trunk
changeset: 374909:9c9d208fc0b6
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 3273cd720273 -r 9c9d208fc0b6 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 @@ ieee80211_announce(struct ieee80211com *
                        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