Don't show kernel pointers to procfs, just show if ni is NULL

This commit is contained in:
Pavel Roskin 2013-11-12 14:32:14 -05:00
parent c95ed6fcf8
commit eb53410664

View File

@ -504,10 +504,10 @@ proc_iv_bss_print(struct ieee80211vap *vap, char *buf, int space)
char *p = buf; char *p = buf;
const struct ieee80211_node *ni = vap->iv_bss; const struct ieee80211_node *ni = vap->iv_bss;
p += sprintf(p, "vap:%p vap->iv_bss: %p\n", if (ni == NULL) {
vap, ni); p += sprintf(p, "ni: NULL\n");
if (ni == NULL)
return (p - buf); return (p - buf);
}
p += sprintf(p, "ni_macaddr: " MAC_FMT "\n" p += sprintf(p, "ni_macaddr: " MAC_FMT "\n"
"ni_bssid: " MAC_FMT "\n" "ni_bssid: " MAC_FMT "\n"