From a12537fc428da40e4ccc8394edcb1ba40b9d24e0 Mon Sep 17 00:00:00 2001 From: Vitor Soares Date: Wed, 30 Apr 2025 16:06:11 +0100 Subject: kernel-module-nxp-wlan: add patch to lower PRINTM_MMSG() log level Add a patch to change the log level used in the mwifiex driver's PRINTM_MMSG macro from KERN_ALERT to KERN_INFO. KERN_ALERT is meant for critical errors; using it for debug messages clutters logs. KERN_INFO is more appropriate for non-critical informational output. Signed-off-by: Vitor Soares (cherry picked from commit 6876b4fe789854f60765a4174e4838d298d19395) --- ...-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch | 36 ++++++++++++++++++++++ .../kernel-modules/kernel-module-nxp-wlan_git.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 recipes-kernel/kernel-modules/kernel-module-nxp-wlan/mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch diff --git a/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch new file mode 100644 index 00000000..bb54750a --- /dev/null +++ b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch @@ -0,0 +1,36 @@ +From b1b218757973fd6a293de5bdbdc75307db07998e Mon Sep 17 00:00:00 2001 +From: Vitor Soares +Date: Wed, 30 Apr 2025 15:12:06 +0100 +Subject: [PATCH] mlinux: moal_main: lower PRINTM_MMSG() log level to KERN_INFO + +Currently, the PRINTM_MMSG macro uses KERN_ALERT for printing messages. +KERN_ALERT is intended for critical conditions requiring immediate +attention (e.g., hardware failure), and using it for normal debug output +is misleading and can clutter system logs. + +This patch lowers the log level to KERN_INFO, which is more appropriate +for informational messages that are not indicative of system-critical +failures. + +Upstream-Status: Inappropriate [upstream not accepting patches] +Signed-off-by: Vitor Soares +--- + mlinux/moal_main.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mlinux/moal_main.h b/mlinux/moal_main.h +index 6d87dcf4f5db..b4e7e4d4a5fd 100644 +--- a/mlinux/moal_main.h ++++ b/mlinux/moal_main.h +@@ -3517,7 +3517,7 @@ extern t_u32 drvdbg; + do { \ + woal_print(level, msg); \ + if (drvdbg & MMSG) \ +- printk(KERN_ALERT msg); \ ++ printk(KERN_INFO msg); \ + } while (0) + + static inline void woal_print(t_u32 level, char *fmt, ...) +-- +2.34.1 + diff --git a/recipes-kernel/kernel-modules/kernel-module-nxp-wlan_git.bb b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan_git.bb index cb47756c..e0790bd2 100644 --- a/recipes-kernel/kernel-modules/kernel-module-nxp-wlan_git.bb +++ b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan_git.bb @@ -13,6 +13,7 @@ MRVL_SRC ?= "git://github.com/nxp-imx/mwifiex.git;protocol=https" SRC_URI = " \ ${MRVL_SRC};branch=${SRCBRANCH} \ file://wlan_src_driver_patch_release_lf-6.6.52-2.2.0.patch \ + file://mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch \ " SRCREV = "5ad19e194f49ed9447bee7864eb562618ccaf9b1" -- cgit v1.2.3-54-g00ecf