diff options
author | sam <sam@FreeBSD.org> | 2007-03-11 07:08:04 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-03-11 07:08:04 +0000 |
commit | c8efce1b967630b0ef256c732ae3991bef23ce37 (patch) | |
tree | b97f31c5f4b3d741d9c84f02df3fc8b4f7a4fece /sys/net80211 | |
parent | 72f9ecd769c7c8004a548a7783d3c451b65530bf (diff) | |
download | FreeBSD-src-c8efce1b967630b0ef256c732ae3991bef23ce37.zip FreeBSD-src-c8efce1b967630b0ef256c732ae3991bef23ce37.tar.gz |
improve debug msg for ie's that are too short
MFC after: 2 weeks
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 8fad700..f6796db 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1252,7 +1252,8 @@ bad: IEEE80211_DISCARD(ic, IEEE80211_MSG_ELEMID, \ wh, ieee80211_mgt_subtype_name[subtype >> \ IEEE80211_FC0_SUBTYPE_SHIFT], \ - "%s", "ie too short"); \ + "ie too short, got %d, expected %d", \ + (_len), (_minlen)); \ ic->ic_stats.is_rx_elem_toosmall++; \ return; \ } \ |