[alsa-devel] [PATCH 07/31] ASoC: wm8580: Use WARN() instead of BUG_ON()
Takashi Iwai
tiwai at suse.de
Tue Nov 5 18:39:54 CET 2013
BUG_ON() is rather useless for debugging as it leads to panic().
Use WARN() instead.
Cc: patches at opensource.wolfsonmicro.com
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
sound/soc/codecs/wm8580.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index 5e9c40fa7eb2..08a414b57b1e 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -736,7 +736,7 @@ static int wm8580_set_sysclk(struct snd_soc_dai *dai, int clk_id,
break;
default:
- BUG_ON("Unknown DAI driver ID\n");
+ WARN(1, "Unknown DAI driver ID\n");
return -EINVAL;
}
--
1.8.4.2
More information about the Alsa-devel
mailing list