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
1 changed files with 3 additions and 3 deletions

View File

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