mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
ALSA: core - strip too long file names in snd_print*()
When modules are built with M= option, they pass long file paths to __FILE__. This results in ugly outputs of snd_print*() when CONFIG_SND_VERBOSE_PRINTK is set. This patch adds a check of the path and strips the leading path dirs if the file name is an absolute path to improve the readability of logs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
422bef879e
commit
1b0053a0f0
1 changed files with 12 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue