Skip to content

Commit

Permalink
[ALSA] sound: this amplifier only goes up to 7
Browse files Browse the repository at this point in the history
sound: kernel log levels are 0-7

Kernel log levels are 0-7, not 0-9.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Nick Andrew authored and Takashi Iwai committed Apr 24, 2008
1 parent eb5a662 commit a295e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/core/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void snd_verbose_printk(const char *file, int line, const char *format, ...)
{
va_list args;

if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && format[2] == '>') {
if (format[0] == '<' && format[1] >= '0' && format[1] <= '7' && format[2] == '>') {
char tmp[] = "<0>";
tmp[1] = format[1];
printk("%sALSA %s:%d: ", tmp, file, line);
Expand All @@ -60,7 +60,7 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
{
va_list args;

if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && format[2] == '>') {
if (format[0] == '<' && format[1] >= '0' && format[1] <= '7' && format[2] == '>') {
char tmp[] = "<0>";
tmp[1] = format[1];
printk("%sALSA %s:%d: ", tmp, file, line);
Expand Down

0 comments on commit a295e09

Please sign in to comment.