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