ChangeSet 1.2181.25.37, 2005/03/24 11:48:53+01:00, [EMAIL PROTECTED]

        [ALSA] Use vprintk()
        
        ALSA Core
        Use vprintk() instead of printk with a temporary line buffer.
        
        Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>



 misc.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)


diff -Nru a/sound/core/misc.c b/sound/core/misc.c
--- a/sound/core/misc.c 2005-03-30 16:18:00 -08:00
+++ b/sound/core/misc.c 2005-03-30 16:18:00 -08:00
@@ -40,7 +40,6 @@
 void snd_verbose_printk(const char *file, int line, const char *format, ...)
 {
        va_list args;
-       char tmpbuf[512];
        
        if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && 
format[2] == '>') {
                char tmp[] = "<0>";
@@ -51,9 +50,8 @@
                printk("ALSA %s:%d: ", file, line);
        }
        va_start(args, format);
-       vsnprintf(tmpbuf, sizeof(tmpbuf), format, args);
+       vprintk(format, args);
        va_end(args);
-       printk(tmpbuf);
 }
 #endif
 
@@ -61,7 +59,6 @@
 void snd_verbose_printd(const char *file, int line, const char *format, ...)
 {
        va_list args;
-       char tmpbuf[512];
        
        if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && 
format[2] == '>') {
                char tmp[] = "<0>";
@@ -72,9 +69,8 @@
                printk(KERN_DEBUG "ALSA %s:%d: ", file, line);
        }
        va_start(args, format);
-       vsnprintf(tmpbuf, sizeof(tmpbuf), format, args);
+       vprintk(format, args);
        va_end(args);
-       printk(tmpbuf);
 
 }
 #endif
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to