diff mbox

ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops

Message ID 1397148308-43791-1-git-send-email-tim.gardner@canonical.com (mailing list archive)
State Superseded
Headers show

Commit Message

Tim Gardner April 10, 2014, 4:45 p.m. UTC
BugLink: http://bugs.launchpad.net/bugs/1305480

The kerneloops-daemon scans dmesg for common crash signatures, among
which is 'BUG:'. The message emitted by the PCM library is really a
warning, so the most expedient thing to do seems to be to change the
string.

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Mark Brown <broonie@linaro.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: JongHo Kim <furmuwon@gmail.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 sound/core/pcm_lib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai April 11, 2014, 3:20 p.m. UTC | #1
At Thu, 10 Apr 2014 10:45:08 -0600,
Tim Gardner wrote:
> 
> BugLink: http://bugs.launchpad.net/bugs/1305480
> 
> The kerneloops-daemon scans dmesg for common crash signatures, among
> which is 'BUG:'. The message emitted by the PCM library is really a
> warning, so the most expedient thing to do seems to be to change the
> string.
> 
> Cc: Jaroslav Kysela <perex@perex.cz>
> Cc: Takashi Iwai <tiwai@suse.de>
> Cc: Mark Brown <broonie@linaro.org>
> Cc: Lars-Peter Clausen <lars@metafoo.de>
> Cc: JongHo Kim <furmuwon@gmail.com>
> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
> ---
>  sound/core/pcm_lib.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
> index ce83def..2a0563d 100644
> --- a/sound/core/pcm_lib.c
> +++ b/sound/core/pcm_lib.c
> @@ -345,7 +345,7 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
>  			snd_pcm_debug_name(substream, name, sizeof(name));
>  			xrun_log_show(substream);
>  			pcm_err(substream->pcm,
> -				"BUG: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
> +				"OVER RUN: %s, pos = %ld, buffer size = %ld, period size = %ld\n",

Use a term "XRUN", as it's not always an overrun.


thanks,

Takashi
diff mbox

Patch

diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index ce83def..2a0563d 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -345,7 +345,7 @@  static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
 			snd_pcm_debug_name(substream, name, sizeof(name));
 			xrun_log_show(substream);
 			pcm_err(substream->pcm,
-				"BUG: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
+				"OVER RUN: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
 				name, pos, runtime->buffer_size,
 				runtime->period_size);
 		}