projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc6dff
)
ALSA: Clean up snd_BUG()
author
Takashi Iwai
<tiwai@suse.de>
Fri, 8 Aug 2008 15:18:08 +0000
(17:18 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Wed, 13 Aug 2008 09:46:43 +0000
(11:46 +0200)
Use the standard WARN() macro for snd_BUG().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/sound/core.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/core.h
b/include/sound/core.h
index b3d8ac7c832b0eb1782b019e4c605372a59cd29f..f52ab6f3ca6eda31768cc663e8177296b7880347 100644
(file)
--- 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 */