ALSA: core - strip too long file names in snd_print*()
authorTakashi Iwai <tiwai@suse.de>
Thu, 27 Aug 2009 10:34:54 +0000 (12:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 27 Aug 2009 10:39:35 +0000 (12:39 +0200)
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>

No differences found