git: 3fa5cdffcc97 - stable/13 - net80211: fix debug printf

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Thu, 30 Dec 2021 19:22:39 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=3fa5cdffcc972f9f74c4571989befaafc7c013f4

commit 3fa5cdffcc972f9f74c4571989befaafc7c013f4
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-12-23 15:21:32 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-12-30 18:26:33 +0000

    net80211: fix debug printf
    
    We are printing %p in _db_show_sta(), there is no need to prefix it
    with 0x again to get a 0x0x...
    
    Spsonsored by:  The FreeBSD Foundation
    
    (cherry picked from commit e51b46cefbfaab08f6e5cb402ebecbf1c0cba3c8)
---
 sys/net80211/ieee80211_ddb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c
index 272aaf988ba1..e649b3c86fda 100644
--- a/sys/net80211/ieee80211_ddb.c
+++ b/sys/net80211/ieee80211_ddb.c
@@ -236,7 +236,7 @@ _db_show_sta(const struct ieee80211_node *ni)
 {
 	int i;
 
-	db_printf("0x%p: mac %s refcnt %d\n", ni,
+	db_printf("%p: mac %s refcnt %d\n", ni,
 		ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni));
 	db_printf("\tvap %p wdsvap %p ic %p table %p\n",
 		ni->ni_vap, ni->ni_wdsvap, ni->ni_ic, ni->ni_table);