Skip to content

Commit

Permalink
ALSA: Clean up snd_BUG()
Browse files Browse the repository at this point in the history
Use the standard WARN() macro for snd_BUG().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Aug 13, 2008
1 parent 7cc6dff commit bdbecf5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/sound/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bdbecf5

Please sign in to comment.