git: 706c18c8b666 - stable/14 - LinuxKPI: 802.11: improve the IMPROVE_HT() macro

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 10 Feb 2025 14:52:50 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=706c18c8b66611d25fba9c003df11b0ce0c04521

commit 706c18c8b66611d25fba9c003df11b0ce0c04521
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-12-28 10:13:12 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-02-10 14:52:10 +0000

    LinuxKPI: 802.11: improve the IMPROVE_HT() macro
    
    Let the macro take a format string and arguments and
    add __func__, __LINE__ to the output.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit a4cdb785bbd7e26cc3f2ed0bb4e5cf7ea83c400b)
---
 sys/compat/linuxkpi/common/src/linux_80211.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h
index 8605ec86ad1b..0c4c615d82e5 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.h
+++ b/sys/compat/linuxkpi/common/src/linux_80211.h
@@ -78,9 +78,10 @@
     if (linuxkpi_debug_80211 & D80211_IMPROVE_TXQ)			\
 	printf("%s:%d: XXX LKPI80211 IMPROVE_TXQ\n", __func__, __LINE__)
 
-#define	IMPROVE_HT(...)							\
+#define	IMPROVE_HT(fmt, ...)						\
     if (linuxkpi_debug_80211 & D80211_TRACE_MODE_HT)			\
-	printf("%s:%d: XXX LKPI80211 IMPROVE_HT\n", __func__, __LINE__)
+	printf("%s:%d: XXX LKPI80211 IMPROVE_HT " fmt "\n",		\
+	    __func__, __LINE__, ##__VA_ARGS__);
 
 #define	MTAG_ABI_LKPI80211	1707696513	/* LinuxKPI 802.11 KBI */