Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319903
b: refs/heads/master
c: b778b3f
h: refs/heads/master
i:
  319901: 9cf6299
  319899: 36d1535
  319895: 9024501
  319887: 1d098e7
  319871: d1f6efd
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Jul 31, 2012
1 parent 54d1d8f commit 6c37ff6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 533574c6bc30cf526cc1c41bde050c854a945efb
refs/heads/master: b778b3f25baf46dd88f16d51f1682828be0aa2ad
13 changes: 9 additions & 4 deletions trunk/sound/core/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void __snd_printk(unsigned int level, const char *path, int line,
{
va_list args;
#ifdef CONFIG_SND_VERBOSE_PRINTK
int kern_level;
struct va_format vaf;
char verbose_fmt[] = KERN_DEFAULT "ALSA %s:%d %pV";
#endif
Expand All @@ -81,12 +82,16 @@ void __snd_printk(unsigned int level, const char *path, int line,
#ifdef CONFIG_SND_VERBOSE_PRINTK
vaf.fmt = format;
vaf.va = &args;
if (format[0] == '<' && format[2] == '>') {
memcpy(verbose_fmt, format, 3);
vaf.fmt = format + 3;

kern_level = printk_get_level(format);
if (kern_level) {
const char *end_of_header = printk_skip_level(format);
memcpy(verbose_fmt, format, end_of_header - format);
vaf.fmt = end_of_header;
} else if (level)
memcpy(verbose_fmt, KERN_DEBUG, 3);
memcpy(verbose_fmt, KERN_DEBUG, sizeof(KERN_DEBUG) - 1);
printk(verbose_fmt, sanity_file_name(path), line, &vaf);

#else
vprintk(format, args);
#endif
Expand Down

0 comments on commit 6c37ff6

Please sign in to comment.