Commit f1e0bf4e authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Fix broken sound print macros

parent 8c93aa4e
...@@ -314,11 +314,11 @@ void snd_printd(const char *format, ...); ...@@ -314,11 +314,11 @@ void snd_printd(const char *format, ...);
/* --- */ /* --- */
#ifdef CONFIG_SND_VERBOSE_PRINTK #ifdef CONFIG_SND_VERBOSE_PRINTK
#define snd_printk(args...) \ #define snd_printk(fmt, args...) \
snd_verbose_printk(__FILE__, __LINE__, ##args) snd_verbose_printk(__FILE__, __LINE__, fmt ,##args)
#else #else
#define snd_printk(args...) \ #define snd_printk(fmt, args...) \
printk(##args) printk(fmt ,##args)
#endif #endif
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
...@@ -326,8 +326,8 @@ void snd_printd(const char *format, ...); ...@@ -326,8 +326,8 @@ void snd_printd(const char *format, ...);
#define __ASTRING__(x) #x #define __ASTRING__(x) #x
#ifdef CONFIG_SND_VERBOSE_PRINTK #ifdef CONFIG_SND_VERBOSE_PRINTK
#define snd_printd(args...) \ #define snd_printd(fmt, args...) \
snd_verbose_printd(__FILE__, __LINE__, ##args) snd_verbose_printd(__FILE__, __LINE__, fmt ,##args)
#endif #endif
#define snd_assert(expr, args...) do {\ #define snd_assert(expr, args...) do {\
if (!(expr)) {\ if (!(expr)) {\
...@@ -344,16 +344,16 @@ void snd_printd(const char *format, ...); ...@@ -344,16 +344,16 @@ void snd_printd(const char *format, ...);
#else /* !CONFIG_SND_DEBUG */ #else /* !CONFIG_SND_DEBUG */
#define snd_printd(args...) /* nothing */ #define snd_printd(fmt, args...) /* nothing */
#define snd_assert(args...) /* nothing */ #define snd_assert(expr, args...) /* nothing */
#define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0) #define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0)
#endif /* CONFIG_SND_DEBUG */ #endif /* CONFIG_SND_DEBUG */
#ifdef CONFIG_SND_DEBUG_DETECT #ifdef CONFIG_SND_DEBUG_DETECT
#define snd_printdd(args...) snd_printk(format, ##args) #define snd_printdd(format, args...) snd_printk(format, ##args)
#else #else
#define snd_printdd(args...) /* nothing */ #define snd_printdd(format, args...) /* nothing */
#endif #endif
#define snd_BUG() snd_assert(0, ) #define snd_BUG() snd_assert(0, )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment