From 7da87002357e2ce7d7fb9f132995882154b12ef3 Mon Sep 17 00:00:00 2001 From: Shivam Garg Date: Fri, 15 Sep 2017 16:13:27 +0900 Subject: [PATCH] Fixing audio debug print macros. The macros gave a warning(error when built with -Wunused-error flags) when built with audio debug flags turned off. --- os/include/debug.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/os/include/debug.h b/os/include/debug.h index 5f37f2d..03c543d 100644 --- a/os/include/debug.h +++ b/os/include/debug.h @@ -1011,24 +1011,24 @@ Once LOGM is approved, each module should have its own index #define auddbg dbg #define audlldbg lldbg #else -#define auddbg (void) -#define audlldbg (void) +#define auddbg(...) +#define audlldbg(...) #endif #ifdef CONFIG_DEBUG_AUDIO_WARN #define audwdbg wdbg #define audllwdbg llwdbg #else -#define audwdbg (void) -#define audllwdbg (void) +#define audwdbg(...) +#define audllwdbg(...) #endif #ifdef CONFIG_DEBUG_AUDIO_INFO #define audvdbg vdbg #define audllvdbg llvdbg #else -#define audvdbg (void) -#define audllvdbg (void) +#define audvdbg(...) +#define audllvdbg(...) #endif /* Buffer dumping macros do not depend on varargs */ -- 2.7.4