]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops
authorTim Gardner <tim.gardner@canonical.com>
Wed, 16 Apr 2014 14:18:35 +0000 (08:18 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Apr 2014 14:20:59 +0000 (16:20 +0200)
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.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c

index ce83def9f43bf9d30755e48f1129d25af81792a9..9acc77eae4872a5c3f1726e05737a381576a5151 100644 (file)
@@ -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);
                }