Skip to content
Commit 1b0053a0 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 422bef87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment