Skip to content

Commit cb3e72a

Browse files
author
Jyri Sarha
committed
ASoC: SOF: ipc4: rate-limit debug slot lookup failure message
sof_ipc4_find_debug_slot_offset_by_type() prints a dev_dbg message every time a slot type is not found. When debugfs files are polled while the DSP is suspended, this fires on every access and spams the kernel log. Use dev_dbg_ratelimited() to suppress repeated messages. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 8969765 commit cb3e72a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/ipc4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ size_t sof_ipc4_find_debug_slot_offset_by_type(struct snd_sof_dev *sdev,
719719
slot_desc_type_offset += SOF_IPC4_DEBUG_DESCRIPTOR_SIZE;
720720
}
721721

722-
dev_dbg(sdev->dev, "Slot type %#x is not available in debug window\n", slot_type);
722+
dev_dbg_ratelimited(sdev->dev, "Slot type %#x is not available in debug window\n", slot_type);
723723
return 0;
724724
}
725725
EXPORT_SYMBOL(sof_ipc4_find_debug_slot_offset_by_type);

0 commit comments

Comments
 (0)