mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]: 2.5.60: snd_printd
@ 2003-02-14 13:42 Bob_Tracy(0000)
  0 siblings, 0 replies; only message in thread
From: Bob_Tracy(0000) @ 2003-02-14 13:42 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

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
-----------------------------------------------------------------------

[-- Attachment #2: patch60_snd_printd --]
[-- Type: text/plain, Size: 1180 bytes --]

--- 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-14 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 13:42 [PATCH]: 2.5.60: snd_printd Bob_Tracy(0000)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®