Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Diagnostic / KASSERT cosmetics



details:   https://anonhg.NetBSD.org/src-all/rev/8e282efcef27
branches:  trunk
changeset: 374979:8e282efcef27
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Mon Jul 06 20:04:01 2020 +0200

description:
Diagnostic / KASSERT cosmetics

diffstat:

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

diffs (20 lines):

diff -r b38cd8e0d7a6 -r 8e282efcef27 sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c   Mon Jul 06 20:02:57 2020 +0200
+++ b/sys/net80211/ieee80211_netbsd.c   Mon Jul 06 20:04:01 2020 +0200
@@ -553,14 +553,12 @@ ieee80211_com_vincref(struct ieee80211va
 void
 ieee80211_com_vdecref(struct ieee80211vap *vap)
 {
-       uint32_t ostate;
+       uint32_t ostate __diagused;
 
        ostate = atomic_add_32_nv(&vap->iv_com_state, -IEEE80211_COM_REF_ADD);
 
        KASSERTMSG(MS(ostate, IEEE80211_COM_REF) != 0,
-           "com reference counter underflow");
-
-       (void) ostate;
+           "com reference counter underflow: %u", ostate);
 }
 
 void



Home | Main Index | Thread Index | Old Index