* [PATCH v2 linux-next] ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops
@ 2014-04-16 14:18 Tim Gardner
2014-04-16 14:21 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Tim Gardner @ 2014-04-16 14:18 UTC (permalink / raw)
To: alsa-devel, linux-kernel
Cc: Tim Gardner, Jaroslav Kysela, Takashi Iwai, Mark Brown,
Lars-Peter Clausen, JongHo Kim
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>
---
v2: Changed string preface from "OVER RUN" to "XRUN". As Takashi pointed out,
'Use a term "XRUN", as it's not always an overrun.'
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..9acc77e 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",
+ "XRUN: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
name, pos, runtime->buffer_size,
runtime->period_size);
}
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 linux-next] ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops
2014-04-16 14:18 [PATCH v2 linux-next] ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops Tim Gardner
@ 2014-04-16 14:21 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2014-04-16 14:21 UTC (permalink / raw)
To: Tim Gardner
Cc: alsa-devel, linux-kernel, Jaroslav Kysela, Mark Brown,
Lars-Peter Clausen, JongHo Kim
At Wed, 16 Apr 2014 08:18:35 -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>
Thanks, applied.
Takashi
> ---
>
> v2: Changed string preface from "OVER RUN" to "XRUN". As Takashi pointed out,
> 'Use a term "XRUN", as it's not always an overrun.'
>
> 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..9acc77e 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",
> + "XRUN: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
> name, pos, runtime->buffer_size,
> runtime->period_size);
> }
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-16 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 14:18 [PATCH v2 linux-next] ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops Tim Gardner
2014-04-16 14:21 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®