Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1375297 > unrolled thread

[PATCH 4.5 117/238] ALSA: pcm: Avoid "BUG:" string for warnings again

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-04-10 22:40 +0200
Last post2016-04-10 22:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.5 117/238] ALSA: pcm: Avoid "BUG:" string for warnings again Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-04-10 22:40 +0200

#1375297 — [PATCH 4.5 117/238] ALSA: pcm: Avoid "BUG:" string for warnings again

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-04-10 22:40 +0200
Subject[PATCH 4.5 117/238] ALSA: pcm: Avoid "BUG:" string for warnings again
Message-ID<rmujj-2ia-85@gated-at.bofh.it>
4.5-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Takashi Iwai <tiwai@suse.de>

commit 0ab1ace856205d10cbc1924b2d931c01ffd216a6 upstream.

The commit [d507941beb1e: ALSA: pcm: Correct PCM BUG error message]
made the warning prefix back to "BUG:" due to its previous wrong
prefix.  But a kernel message containing "BUG:" seems taken as an Oops
message wrongly by some brain-dead daemons, and it annoys users in the
end.  Instead of teaching daemons, change the string again to a more
reasonable one.

Fixes: 507941beb1e ('ALSA: pcm: Correct PCM BUG error message')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 sound/core/pcm_lib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -322,7 +322,7 @@ static int snd_pcm_update_hw_ptr0(struct
 			char name[16];
 			snd_pcm_debug_name(substream, name, sizeof(name));
 			pcm_err(substream->pcm,
-				"BUG: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
+				"invalid position: %s, pos = %ld, buffer size = %ld, period size = %ld\n",
 				name, pos, runtime->buffer_size,
 				runtime->period_size);
 		}

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web