mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: rct@gherkin.frus.com (Bob_Tracy(0000))
To: linux-kernel@vger.kernel.org
Subject: [PATCH]: 2.5.60: snd_printd
Date: Fri, 14 Feb 2003 07:42:02 -0600 (CST)	[thread overview]
Message-ID: <20030214134202.2C0684EEF@gherkin.frus.com> (raw)

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

                 reply	other threads:[~2003-02-14 13:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030214134202.2C0684EEF@gherkin.frus.com \
    --to=rct@gherkin.frus.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®