Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759347AbaDKPUv (ORCPT ); Fri, 11 Apr 2014 11:20:51 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45023 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755577AbaDKPUu (ORCPT ); Fri, 11 Apr 2014 11:20:50 -0400 Date: Fri, 11 Apr 2014 17:20:49 +0200 Message-ID: From: Takashi Iwai To: Tim Gardner Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Mark Brown , Lars-Peter Clausen , JongHo Kim Subject: Re: [PATCH] ALSA: pcm: 'BUG:' message unnecessarily triggers kerneloops In-Reply-To: <1397148308-43791-1-git-send-email-tim.gardner@canonical.com> References: <1397148308-43791-1-git-send-email-tim.gardner@canonical.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Takashi Iwai > Cc: Mark Brown > Cc: Lars-Peter Clausen > Cc: JongHo Kim > Signed-off-by: Tim Gardner > --- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/