Messages in this thread Patch in this message | | | Subject | [PATCH]: 2.5.60: snd_printd | Date | Fri, 14 Feb 2003 07:42:02 -0600 (CST) | From | (Bob_Tracy(0000)) |
| |
It appears 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.
-- ----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org rct@frus.com ----------------------------------------------------------------------- --- linux/sound/core/misc.c.orig 2003-02-13 15:48:42.000000000 -0600 +++ linux/sound/core/misc.c 2003-02-13 15:50:08.000000000 -0600 @@ -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 --- linux/sound/core/sound.c.orig 2003-02-13 15:48:42.000000000 -0600 +++ linux/sound/core/sound.c 2003-02-13 15:51:12.000000000 -0600 @@ -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); | |