Change all variadic macros to C99 style

This commit is contained in:
Gregory Nutt 2014-05-22 09:01:51 -06:00
parent 9aba7598b0
commit 2abe0dd6dd
43 changed files with 139 additions and 138 deletions

View File

@ -20,7 +20,7 @@
#define dputchar(x) putchar(x) #define dputchar(x) putchar(x)
#define dputs(x) puts(x) #define dputs(x) puts(x)
#define dphex(x,y) phex(x,y) #define dphex(x,y) phex(x,y)
#define printd(x, args ...) printf(x, ## args) #define printd(x, ...) printf(x, ##__VA_ARGS__)
#else #else
#define dputchar(x) #define dputchar(x)
#define dputs(x) #define dputs(x)

View File

@ -56,7 +56,7 @@
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_DEBUG_HARDFAULT #ifdef CONFIG_DEBUG_HARDFAULT
# define hfdbg(format, arg...) lldbg(format, ##arg) # define hfdbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define hfdbg(x...) # define hfdbg(x...)
#endif #endif

View File

@ -70,7 +70,7 @@
*/ */
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL) #if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
# define svcdbg(format, arg...) lldbg(format, ##arg) # define svcdbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define svcdbg(x...) # define svcdbg(x...)
#endif #endif

View File

@ -61,7 +61,7 @@
*/ */
#ifdef CONFIG_DEBUG_HARDFAULT #ifdef CONFIG_DEBUG_HARDFAULT
# define hfdbg(format, arg...) lldbg(format, ##arg) # define hfdbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define hfdbg(x...) # define hfdbg(x...)
#endif #endif

View File

@ -56,7 +56,7 @@
#undef DEBUG_MEMFAULTS /* Define to debug memory management faults */ #undef DEBUG_MEMFAULTS /* Define to debug memory management faults */
#ifdef DEBUG_MEMFAULTS #ifdef DEBUG_MEMFAULTS
# define mfdbg(format, arg...) lldbg(format, ##arg) # define mfdbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define mfdbg(x...) # define mfdbg(x...)
#endif #endif

View File

@ -70,7 +70,7 @@
*/ */
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL) #if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
# define svcdbg(format, arg...) lldbg(format, ##arg) # define svcdbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define svcdbg(x...) # define svcdbg(x...)
#endif #endif

View File

@ -65,7 +65,7 @@
*/ */
#ifdef CONFIG_DEBUG_SYSCALL #ifdef CONFIG_DEBUG_SYSCALL
# define swidbg(format, arg...) lldbg(format, ##arg) # define swidbg(format, ...) lldbg(format, ##__VA_ARGS__)
#else #else
# define swidbg(x...) # define swidbg(x...)
#endif #endif

View File

@ -58,9 +58,9 @@
****************************************************************************/ ****************************************************************************/
#ifdef VFAT_STANDALONE #ifdef VFAT_STANDALONE
# define sdbg(format, arg...) printf(format, ##arg) # define sdbg(format, ...) printf(format, ##__VA_ARGS__)
# define kmalloc(size) malloc(size) # define kmalloc(size) malloc(size)
# define kfree(mem) free(mem) # define kfree(mem) free(mem)
#endif #endif
/**************************************************************************** /****************************************************************************

View File

@ -115,7 +115,7 @@
#endif #endif
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -130,7 +130,7 @@ index c78362f..207f9b9 100644
+#if 0 +#if 0
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# define nsh_output(v, fmt...) (v)->output(v, ##fmt) # define nsh_output(v, ...) (v)->output(v, ##__VA_ARGS__)
#else #else
# define nsh_output vtbl->output # define nsh_output vtbl->output
#endif #endif

View File

@ -65,8 +65,9 @@
# define LCD_YRES 67 # define LCD_YRES 67
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -94,7 +94,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -61,7 +61,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -71,9 +71,9 @@
#endif #endif
#ifdef CONFIG_LCD_RITDEBUG #ifdef CONFIG_LCD_RITDEBUG
# define ritdbg(format, arg...) vdbg(format, ##arg) # define ritdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define oleddc_dumpgpio(m) tiva_dumpgpio(OLEDDC_GPIO, m) # define oleddc_dumpgpio(m) tiva_dumpgpio(OLEDDC_GPIO, m)
# define oledcs_dumpgpio(m) tiva_dumpgpio(OLEDCS_GPIO, m) # define oledcs_dumpgpio(m) tiva_dumpgpio(OLEDCS_GPIO, m)
#else #else
# define ritdbg(x...) # define ritdbg(x...)
# define oleddc_dumpgpio(m) # define oleddc_dumpgpio(m)

View File

@ -71,9 +71,9 @@
#endif #endif
#ifdef CONFIG_LCD_RITDEBUG #ifdef CONFIG_LCD_RITDEBUG
# define ritdbg(format, arg...) vdbg(format, ##arg) # define ritdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define oleddc_dumpgpio(m) tiva_dumpgpio(OLEDDC_GPIO, m) # define oleddc_dumpgpio(m) tiva_dumpgpio(OLEDDC_GPIO, m)
# define oledcs_dumpgpio(m) tiva_dumpgpio(OLEDCS_GPIO, m) # define oledcs_dumpgpio(m) tiva_dumpgpio(OLEDCS_GPIO, m)
#else #else
# define ritdbg(x...) # define ritdbg(x...)
# define oleddc_dumpgpio(m) # define oleddc_dumpgpio(m)

View File

@ -85,9 +85,9 @@
#endif #endif
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define ugdbg(format, arg...) vdbg(format, ##arg) # define ugdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define oleddc_dumpgpio(m) lpc17_dumpgpio(LPCXPRESSO_OLED_POWER, m) # define oleddc_dumpgpio(m) lpc17_dumpgpio(LPCXPRESSO_OLED_POWER, m)
# define oledcs_dumpgpio(m) lpc17_dumpgpio(LPCXPRESSO_OLED_CS, m) # define oledcs_dumpgpio(m) lpc17_dumpgpio(LPCXPRESSO_OLED_CS, m)
#else #else
# define ugdbg(x...) # define ugdbg(x...)
# define oleddc_dumpgpio(m) # define oleddc_dumpgpio(m)

View File

@ -83,7 +83,7 @@
#endif #endif
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -86,8 +86,8 @@
#endif #endif
#ifdef CONFIG_LCD_NOKIADBG #ifdef CONFIG_LCD_NOKIADBG
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define lcd_dumpgpio(m) lpc17_dumpgpio(LPC1766STK_LCD_RST, m) # define lcd_dumpgpio(m) lpc17_dumpgpio(LPC1766STK_LCD_RST, m)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcd_dumpgpio(m) # define lcd_dumpgpio(m)

View File

@ -159,14 +159,14 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_LCD_REGDEBUG #ifdef CONFIG_LCD_REGDEBUG
# define regdbg(format, arg...) vdbg(format, ##arg) # define regdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define regdbg(x...) # define regdbg(x...)
#endif #endif
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -114,8 +114,8 @@
/* Debug ********************************************************************/ /* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -144,8 +144,8 @@
/* Debug ********************************************************************/ /* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -312,7 +312,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -93,8 +93,8 @@
/* Debug ********************************************************************/ /* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -93,8 +93,8 @@
/* Debug ********************************************************************/ /* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -62,8 +62,8 @@
#define DEFAULT_BAUD 9600 #define DEFAULT_BAUD 9600
#define dbg(format, arg...) if (debug > 0) printconsole(format, ##arg) #define dbg(format, ...) if (debug > 0) printconsole(format, ##__VA_ARGS__)
#define vdbg(format, arg...) if (debug > 1) printconsole(format, ##arg) #define vdbg(format, ...) if (debug > 1) printconsole(format, ##__VA_ARGS__)
/**************************************************************************** /****************************************************************************
* Private Types * Private Types

View File

@ -130,7 +130,7 @@ index c78362f..207f9b9 100644
+#if 0 +#if 0
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# define nsh_output(v, fmt...) (v)->output(v, ##fmt) # define nsh_output(v, ...) (v)->output(v, ##__VA_ARGS__)
#else #else
# define nsh_output vtbl->output # define nsh_output vtbl->output
#endif #endif

View File

@ -99,8 +99,8 @@
/* Debug ********************************************************************/ /* Debug ********************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -112,8 +112,8 @@
/* Debug */ /* Debug */
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -308,7 +308,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_LCD_REGDEBUG #ifdef CONFIG_LCD_REGDEBUG
# define lcddbg(format, arg...) llvdbg(format, ##arg) # define lcddbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -180,7 +180,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_LCD_RITDEBUG #ifdef CONFIG_LCD_RITDEBUG
# define ritdbg(format, arg...) vdbg(format, ##arg) # define ritdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define ritdbg(x...) # define ritdbg(x...)
#endif #endif

View File

@ -90,7 +90,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_LCD_SKELDEBUG #ifdef CONFIG_LCD_SKELDEBUG
# define skeldbg(format, arg...) vdbg(format, ##arg) # define skeldbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define skeldbg(x...) # define skeldbg(x...)
#endif #endif

View File

@ -301,8 +301,8 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -209,7 +209,7 @@
/* Debst7567 ******************************************************************************/ /* Debst7567 ******************************************************************************/
#ifdef CONFIG_LCD_ST7567DEBUG #ifdef CONFIG_LCD_ST7567DEBUG
# define st7567dbg(format, arg...) vdbg(format, ##arg) # define st7567dbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define st7567dbg(x...) # define st7567dbg(x...)
#endif #endif

View File

@ -263,8 +263,8 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) dbg(format, ##arg) # define lcddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define lcdvdbg(format, arg...) vdbg(format, ##arg) # define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
# define lcdvdbg(x...) # define lcdvdbg(x...)

View File

@ -224,7 +224,7 @@
/* Debug ******************************************************************************/ /* Debug ******************************************************************************/
#ifdef CONFIG_DEBUG_LCD #ifdef CONFIG_DEBUG_LCD
# define lcddbg(format, arg...) vdbg(format, ##arg) # define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
#else #else
# define lcddbg(x...) # define lcddbg(x...)
#endif #endif

View File

@ -56,7 +56,7 @@
/* This needs to match the logic in include/debug.h */ /* This needs to match the logic in include/debug.h */
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# define message(format, arg...) syslog(format, ##arg) # define message(format, ...) syslog(format, ##__VA_ARGS__)
#else #else
# define message syslog # define message syslog
#endif #endif

View File

@ -209,9 +209,9 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG # ifdef CONFIG_DEBUG
# ifdef CONFIG_ARCH_LOWPUTC # ifdef CONFIG_ARCH_LOWPUTC
# define dbgprintf(format, arg...) lowsyslog(format, ##arg) # define dbgprintf(format, ...) lowsyslog(format, ##__VA_ARGS__)
# else # else
# define dbgprintf(format, arg...) syslog(format, ##arg) # define dbgprintf(format, ...) syslog(format, ##__VA_ARGS__)
# endif # endif
# else # else
# define dbgprintf(x...) # define dbgprintf(x...)

View File

@ -100,26 +100,26 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
/* Variable argument macros supported */ /* C-99 style variadic macros are supported */
#ifdef CONFIG_DEBUG #ifdef CONFIG_DEBUG
# define dbg(format, arg...) \ # define dbg(format, ...) \
syslog(EXTRA_FMT format EXTRA_ARG, ##arg) syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# ifdef CONFIG_ARCH_LOWPUTC # ifdef CONFIG_ARCH_LOWPUTC
# define lldbg(format, arg...) \ # define lldbg(format, ...) \
lowsyslog(EXTRA_FMT format EXTRA_ARG, ##arg) lowsyslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# else # else
# define lldbg(x...) # define lldbg(x...)
# endif # endif
# ifdef CONFIG_DEBUG_VERBOSE # ifdef CONFIG_DEBUG_VERBOSE
# define vdbg(format, arg...) \ # define vdbg(format, ...) \
syslog(EXTRA_FMT format EXTRA_ARG, ##arg) syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# ifdef CONFIG_ARCH_LOWPUTC # ifdef CONFIG_ARCH_LOWPUTC
# define llvdbg(format, arg...) \ # define llvdbg(format, ...) \
lowsyslog(EXTRA_FMT format EXTRA_ARG, ##arg) lowsyslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# else # else
# define llvdbg(x...) # define llvdbg(x...)
# endif # endif
@ -141,10 +141,10 @@
/* Subsystem specific debug */ /* Subsystem specific debug */
#ifdef CONFIG_DEBUG_MM #ifdef CONFIG_DEBUG_MM
# define mdbg(format, arg...) dbg(format, ##arg) # define mdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define mlldbg(format, arg...) lldbg(format, ##arg) # define mlldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define mvdbg(format, arg...) vdbg(format, ##arg) # define mvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define mllvdbg(format, arg...) llvdbg(format, ##arg) # define mllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define mdbg(x...) # define mdbg(x...)
# define mlldbg(x...) # define mlldbg(x...)
@ -153,10 +153,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_SCHED #ifdef CONFIG_DEBUG_SCHED
# define sdbg(format, arg...) dbg(format, ##arg) # define sdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define slldbg(format, arg...) lldbg(format, ##arg) # define slldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define svdbg(format, arg...) vdbg(format, ##arg) # define svdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define sllvdbg(format, arg...) llvdbg(format, ##arg) # define sllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define sdbg(x...) # define sdbg(x...)
# define slldbg(x...) # define slldbg(x...)
@ -165,10 +165,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_PAGING #ifdef CONFIG_DEBUG_PAGING
# define pgdbg(format, arg...) dbg(format, ##arg) # define pgdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define pglldbg(format, arg...) lldbg(format, ##arg) # define pglldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define pgvdbg(format, arg...) vdbg(format, ##arg) # define pgvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define pgllvdbg(format, arg...) llvdbg(format, ##arg) # define pgllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define pgdbg(x...) # define pgdbg(x...)
# define pglldbg(x...) # define pglldbg(x...)
@ -177,10 +177,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_DMA #ifdef CONFIG_DEBUG_DMA
# define dmadbg(format, arg...) dbg(format, ##arg) # define dmadbg(format, ...) dbg(format, ##__VA_ARGS__)
# define dmalldbg(format, arg...) lldbg(format, ##arg) # define dmalldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define dmavdbg(format, arg...) vdbg(format, ##arg) # define dmavdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define dmallvdbg(format, arg...) llvdbg(format, ##arg) # define dmallvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define dmadbg(x...) # define dmadbg(x...)
# define dmalldbg(x...) # define dmalldbg(x...)
@ -189,10 +189,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_NET #ifdef CONFIG_DEBUG_NET
# define ndbg(format, arg...) dbg(format, ##arg) # define ndbg(format, ...) dbg(format, ##__VA_ARGS__)
# define nlldbg(format, arg...) lldbg(format, ##arg) # define nlldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define nvdbg(format, arg...) vdbg(format, ##arg) # define nvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define nllvdbg(format, arg...) llvdbg(format, ##arg) # define nllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define ndbg(x...) # define ndbg(x...)
# define nlldbg(x...) # define nlldbg(x...)
@ -201,10 +201,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_USB #ifdef CONFIG_DEBUG_USB
# define udbg(format, arg...) dbg(format, ##arg) # define udbg(format, ...) dbg(format, ##__VA_ARGS__)
# define ulldbg(format, arg...) lldbg(format, ##arg) # define ulldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define uvdbg(format, arg...) vdbg(format, ##arg) # define uvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define ullvdbg(format, arg...) llvdbg(format, ##arg) # define ullvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define udbg(x...) # define udbg(x...)
# define ulldbg(x...) # define ulldbg(x...)
@ -213,10 +213,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
# define fdbg(format, arg...) dbg(format, ##arg) # define fdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define flldbg(format, arg...) lldbg(format, ##arg) # define flldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define fvdbg(format, arg...) vdbg(format, ##arg) # define fvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define fllvdbg(format, arg...) llvdbg(format, ##arg) # define fllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define fdbg(x...) # define fdbg(x...)
# define flldbg(x...) # define flldbg(x...)
@ -225,10 +225,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_INPUT #ifdef CONFIG_DEBUG_INPUT
# define idbg(format, arg...) dbg(format, ##arg) # define idbg(format, ...) dbg(format, ##__VA_ARGS__)
# define illdbg(format, arg...) lldbg(format, ##arg) # define illdbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define ivdbg(format, arg...) vdbg(format, ##arg) # define ivdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define illvdbg(format, arg...) llvdbg(format, ##arg) # define illvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define idbg(x...) # define idbg(x...)
# define illdbg(x...) # define illdbg(x...)
@ -237,10 +237,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_ANALOG #ifdef CONFIG_DEBUG_ANALOG
# define adbg(format, arg...) dbg(format, ##arg) # define adbg(format, ...) dbg(format, ##__VA_ARGS__)
# define alldbg(format, arg...) lldbg(format, ##arg) # define alldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define avdbg(format, arg...) vdbg(format, ##arg) # define avdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define allvdbg(format, arg...) llvdbg(format, ##arg) # define allvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define adbg(x...) # define adbg(x...)
# define alldbg(x...) # define alldbg(x...)
@ -249,10 +249,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_GRAPHICS #ifdef CONFIG_DEBUG_GRAPHICS
# define gdbg(format, arg...) dbg(format, ##arg) # define gdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define glldbg(format, arg...) lldbg(format, ##arg) # define glldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define gvdbg(format, arg...) vdbg(format, ##arg) # define gvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define gllvdbg(format, arg...) llvdbg(format, ##arg) # define gllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define gdbg(x...) # define gdbg(x...)
# define glldbg(x...) # define glldbg(x...)
@ -261,10 +261,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_BINFMT #ifdef CONFIG_DEBUG_BINFMT
# define bdbg(format, arg...) dbg(format, ##arg) # define bdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define blldbg(format, arg...) lldbg(format, ##arg) # define blldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define bvdbg(format, arg...) vdbg(format, ##arg) # define bvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define bllvdbg(format, arg...) llvdbg(format, ##arg) # define bllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define bdbg(x...) # define bdbg(x...)
# define blldbg(x...) # define blldbg(x...)
@ -273,10 +273,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_LIB #ifdef CONFIG_DEBUG_LIB
# define ldbg(format, arg...) dbg(format, ##arg) # define ldbg(format, ...) dbg(format, ##__VA_ARGS__)
# define llldbg(format, arg...) lldbg(format, ##arg) # define llldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define lvdbg(format, arg...) vdbg(format, ##arg) # define lvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define lllvdbg(format, arg...) llvdbg(format, ##arg) # define lllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define ldbg(x...) # define ldbg(x...)
# define llldbg(x...) # define llldbg(x...)
@ -285,10 +285,10 @@
#endif #endif
#ifdef CONFIG_DEBUG_AUDIO #ifdef CONFIG_DEBUG_AUDIO
# define auddbg(format, arg...) dbg(format, ##arg) # define auddbg(format, ...) dbg(format, ##__VA_ARGS__)
# define audlldbg(format, arg...) lldbg(format, ##arg) # define audlldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define audvdbg(format, arg...) vdbg(format, ##arg) # define audvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define audllvdbg(format, arg...) llvdbg(format, ##arg) # define audllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define auddbg(x...) # define auddbg(x...)
# define audlldbg(x...) # define audlldbg(x...)
@ -298,7 +298,7 @@
#else /* CONFIG_CPP_HAVE_VARARGS */ #else /* CONFIG_CPP_HAVE_VARARGS */
/* Variable argument macros NOT supported */ /* Variadic macros NOT supported */
#ifdef CONFIG_DEBUG #ifdef CONFIG_DEBUG
# ifndef CONFIG_ARCH_LOWPUTC # ifndef CONFIG_ARCH_LOWPUTC

View File

@ -91,10 +91,10 @@
/* NRF24L01 debug */ /* NRF24L01 debug */
#ifdef NRF24L01_DEBUG #ifdef NRF24L01_DEBUG
# define wdbg(format, arg...) dbg(format, ##arg) # define wdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define wlldbg(format, arg...) lldbg(format, ##arg) # define wlldbg(format, ...) lldbg(format, ##__VA_ARGS__)
# define wvdbg(format, arg...) vdbg(format, ##arg) # define wvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# define wllvdbg(format, arg...) llvdbg(format, ##arg) # define wllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
#else #else
# define wdbg(x...) # define wdbg(x...)
# define wlldbg(x...) # define wlldbg(x...)

View File

@ -51,9 +51,9 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_ARCH_LOWPUTC # ifdef CONFIG_ARCH_LOWPUTC
# define message(format, arg...) lowsyslog(format, ##arg) # define message(format, ...) lowsyslog(format, ##__VA_ARGS__)
# else # else
# define message(format, arg...) syslog(format, ##arg) # define message(format, ...) syslog(format, ##__VA_ARGS__)
# endif # endif
#else #else
# ifdef CONFIG_ARCH_LOWPUTC # ifdef CONFIG_ARCH_LOWPUTC

View File

@ -63,11 +63,11 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG_GRAM # ifdef CONFIG_DEBUG_GRAM
# define gramdbg(format, arg...) dbg(format, ##arg) # define gramdbg(format, ...) dbg(format, ##__VA_ARGS__)
# define gramvdbg(format, arg...) vdbg(format, ##arg) # define gramvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
# else # else
# define gramdbg(format, arg...) mdbg(format, ##arg) # define gramdbg(format, ...) mdbg(format, ##__VA_ARGS__)
# define gramvdbg(format, arg...) mvdbg(format, ##arg) # define gramvdbg(format, ...) mvdbg(format, ##__VA_ARGS__)
# endif # endif
#else #else
# ifdef CONFIG_DEBUG_GRAM # ifdef CONFIG_DEBUG_GRAM

View File

@ -86,10 +86,10 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef IGMP_GRPDEBUG # ifdef IGMP_GRPDEBUG
# define grpdbg(format, arg...) ndbg(format, ##arg) # define grpdbg(format, ...) ndbg(format, ##__VA_ARGS__)
# define grplldbg(format, arg...) nlldbg(format, ##arg) # define grplldbg(format, ...) nlldbg(format, ##__VA_ARGS__)
# define grpvdbg(format, arg...) nvdbg(format, ##arg) # define grpvdbg(format, ...) nvdbg(format, ##__VA_ARGS__)
# define grpllvdbg(format, arg...) nllvdbg(format, ##arg) # define grpllvdbg(format, ...) nllvdbg(format, ##__VA_ARGS__)
# else # else
# define grpdbg(x...) # define grpdbg(x...)
# define grplldbg(x...) # define grplldbg(x...)

View File

@ -70,10 +70,10 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef IGMP_GTMRDEBUG # ifdef IGMP_GTMRDEBUG
# define gtmrdbg(format, arg...) ndbg(format, ##arg) # define gtmrdbg(format, ...) ndbg(format, ##__VA_ARGS__)
# define gtmrlldbg(format, arg...) nlldbg(format, ##arg) # define gtmrlldbg(format, ...) nlldbg(format, ##__VA_ARGS__)
# define gtmrvdbg(format, arg...) nvdbg(format, ##arg) # define gtmrvdbg(format, ...) nvdbg(format, ##__VA_ARGS__)
# define gtmrllvdbg(format, arg...) nllvdbg(format, ##arg) # define gtmrllvdbg(format, ...) nllvdbg(format, ##__VA_ARGS__)
# else # else
# define gtmrdbg(x...) # define gtmrdbg(x...)
# define gtmrlldbg(x...) # define gtmrlldbg(x...)