From: Dragos Tarcatu Date: Wed, 12 Jun 2019 16:57:01 +0000 (-0500) Subject: ASOC: SOF: ipc: prevent logging trace messages X-Git-Tag: Ubuntu-5.13.0-19.19~7921^2~7^2~230 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4cee883e97b6095e23f5d72543da93e1506ff8c2;p=mirror_ubuntu-jammy-kernel.git ASOC: SOF: ipc: prevent logging trace messages If the firmware is set for verbose tracing, the kernel log is flooded with ipc rx/ipc rx done messages. Prevent logging those unless the verbose IPC debugging config option is set. Signed-off-by: Dragos Tarcatu Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/ipc.c b/sound/soc/sof/ipc.c index 558b596e2133..f3eb46bc808b 100644 --- a/sound/soc/sof/ipc.c +++ b/sound/soc/sof/ipc.c @@ -196,7 +196,8 @@ static void ipc_log_header(struct device *dev, u8 *text, u32 cmd) #else static inline void ipc_log_header(struct device *dev, u8 *text, u32 cmd) { - dev_dbg(dev, "%s: 0x%x\n", text, cmd); + if ((cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_TRACE_MSG) + dev_dbg(dev, "%s: 0x%x\n", text, cmd); } #endif