From: Takashi Iwai Date: Thu, 27 Aug 2009 10:34:54 +0000 (+0200) Subject: ALSA: core - strip too long file names in snd_print*() X-Git-Tag: v2.6.32-rc1~732^2~4^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0053a0f0893e6bbaaee0d28f5f6269459d8d14;p=pandora-kernel.git 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 --- Reading git-diff-tree failed