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/52d0514de97a
branches: trunk
changeset: 988818:52d0514de97a
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 39a830baec83 -r 52d0514de97a 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