2.5.63 snd_printd
PATCH 1/1 2.5.63 snd_printd
Back in 2.5.60, it seemed that the intent was to do away with snd_printd() and replace that function with a simple #define in terms of snd_verbose_printd() or printk() as appropriate. This patch set finishes the job by deleting both the snd_printd() function and the corresponding EXPORT_SYMBOL(). This was needed to fix a compilation error with CONFIG_SND_DEBUG=y and CONFIG_SND_VERBOSE_PRINTK not set.
Applies to 2.5.60 through 2.5.63 inclusive. Originally posted 14 Feb.
Signature · 4 lines
----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org [email protected] -----------------------------------------------------------------------
sound/core/misc.c renamed from sound/core/misc.c.orig +0 -22
@@ -79,25 +79,3 @@ printk(tmpbuf); }#endif - -#if defined(CONFIG_SND_DEBUG ) && !defined(CONFIG_SND_VERBOSE_PRINTK ) -void snd_printd (const char *format, ...) -{ -va_list args; -char tmpbuf[512 ]; - -if (format[0 ] =='<' && format[1 ] >='0' && format[1 ] <='9' && format[2 ] =='>' ) { -char tmp[] ="<0>" ; - tmp[1 ] = format[1 ]; -printk ("%sALSA: " , tmp); - format +=3 ; - }else { -printk (KERN_DEBUG "ALSA: " ); - } -va_start (args, format); -vsnprintf (tmpbuf,sizeof (tmpbuf)-1 , format, args); -va_end (args); - tmpbuf[sizeof (tmpbuf)-1 ] ='\0' ; -printk (tmpbuf); -} -#endif
sound/core/sound.c renamed from sound/core/sound.c.orig +0 -3
@@ -522,9 +522,6 @@#if defined(CONFIG_SND_DEBUG ) && defined(CONFIG_SND_VERBOSE_PRINTK )EXPORT_SYMBOL (snd_verbose_printd);#endif -#if defined(CONFIG_SND_DEBUG ) && !defined(CONFIG_SND_VERBOSE_PRINTK ) -EXPORT_SYMBOL (snd_printd); -#endif /* wrappers */ #ifdef CONFIG_SND_DEBUG_MEMORY EXPORT_SYMBOL (snd_wrapper_kmalloc);