lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2D6CF44B8B2BA412+20250710145043.331831-1-wangyuli@uniontech.com>
Date: Thu, 10 Jul 2025 22:50:43 +0800
From: WangYuli <wangyuli@...ontech.com>
To: johannes@...solutions.net
Cc: linux-wireless@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	zhanjun@...ontech.com,
	niecheng1@...ontech.com,
	guanwentao@...ontech.com,
	WangYuli <wangyuli@...ontech.com>
Subject: [PATCH] mac80211: fix unsigned int link_id format specifiers in trace.h

Fix format specifiers for link_id fields declared as 'unsigned int'
to use %u instead of %d. This affects several trace events where
link_id was incorrectly formatted as signed integer.

Signed-off-by: WangYuli <wangyuli@...ontech.com>
---
 net/mac80211/trace.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h
index 72fad8ea8bb9..cd1e0c4dfe2f 100644
--- a/net/mac80211/trace.h
+++ b/net/mac80211/trace.h
@@ -1070,7 +1070,7 @@ TRACE_EVENT(drv_conf_tx,
 	),
 
 	TP_printk(
-		LOCAL_PR_FMT  VIF_PR_FMT  " link_id: %d, AC:%d",
+		LOCAL_PR_FMT  VIF_PR_FMT  " link_id: %u, AC:%d",
 		LOCAL_PR_ARG, VIF_PR_ARG, __entry->link_id, __entry->ac
 	)
 );
@@ -1785,7 +1785,7 @@ DECLARE_EVENT_CLASS(local_sdata_chanctx,
 	),
 
 	TP_printk(
-		LOCAL_PR_FMT VIF_PR_FMT " link_id:%d" CHANCTX_PR_FMT,
+		LOCAL_PR_FMT VIF_PR_FMT " link_id:%u" CHANCTX_PR_FMT,
 		LOCAL_PR_ARG, VIF_PR_ARG, __entry->link_id, CHANCTX_PR_ARG
 	)
 );
@@ -2194,7 +2194,7 @@ TRACE_EVENT(drv_get_txpower,
 	),
 
 	TP_printk(
-		LOCAL_PR_FMT VIF_PR_FMT " link_id:%d dbm:%d ret:%d",
+		LOCAL_PR_FMT VIF_PR_FMT " link_id:%u dbm:%d ret:%d",
 		LOCAL_PR_ARG, VIF_PR_ARG, __entry->link_id, __entry->dbm, __entry->ret
 	)
 );
@@ -2912,7 +2912,7 @@ TRACE_EVENT(api_chswitch_done,
 	),
 
 	TP_printk(
-		VIF_PR_FMT " success=%d link_id=%d",
+		VIF_PR_FMT " success=%d link_id=%u",
 		VIF_PR_ARG, __entry->success, __entry->link_id
 	)
 );
-- 
2.50.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ