diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 19:18:08 +0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 13:46:43 +0400 |
commit | bdbecf50064b75ecce2e10ce2621de0d0fac7de6 (patch) | |
tree | e9b69ee5db0888b3570a3841d4574dea97daaef5 /include/sound | |
parent | 7cc6dffdae28058f5953fac5743b6abf705d4f05 (diff) | |
download | linux-bdbecf50064b75ecce2e10ce2621de0d0fac7de6.tar.xz |
ALSA: Clean up snd_BUG()
Use the standard WARN() macro for snd_BUG().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/core.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index b3d8ac7c832b..f52ab6f3ca6e 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -383,11 +383,7 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) printk(fmt ,##args) #endif -#define snd_BUG() do { \ - snd_printk(KERN_ERR "BUG?\n"); \ - dump_stack(); \ -} while (0) - +#define snd_BUG() WARN(1, "BUG?\n") #define snd_BUG_ON(cond) WARN((cond), "BUG? (%s)\n", __stringify(cond)) #else /* !CONFIG_SND_DEBUG */ |