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/172a1e53c00a
branches:  trunk
changeset: 942228:172a1e53c00a
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 127cc7332758 -r 172a1e53c00a 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 @@
 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