From 54f7552fbc21a3959636225bd8e80ba95fc6750c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 22 May 2014 09:01:51 -0600 Subject: Change all variadic macros to C99 style --- nuttx/drivers/lcd/memlcd.c | 4 ++-- nuttx/drivers/lcd/nokia6100.c | 2 +- nuttx/drivers/lcd/p14201.c | 2 +- nuttx/drivers/lcd/skeleton.c | 2 +- nuttx/drivers/lcd/ssd1306.c | 4 ++-- nuttx/drivers/lcd/st7567.c | 2 +- nuttx/drivers/lcd/ug-2864ambag01.c | 4 ++-- nuttx/drivers/lcd/ug-9664hswag01.c | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) (limited to 'nuttx/drivers/lcd') diff --git a/nuttx/drivers/lcd/memlcd.c b/nuttx/drivers/lcd/memlcd.c index dd7b534fe..578c30a1c 100644 --- a/nuttx/drivers/lcd/memlcd.c +++ b/nuttx/drivers/lcd/memlcd.c @@ -112,8 +112,8 @@ /* Debug */ #ifdef CONFIG_DEBUG_LCD -# define lcddbg(format, arg...) dbg(format, ##arg) -# define lcdvdbg(format, arg...) vdbg(format, ##arg) +# define lcddbg(format, ...) dbg(format, ##__VA_ARGS__) +# define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define lcddbg(x...) # define lcdvdbg(x...) diff --git a/nuttx/drivers/lcd/nokia6100.c b/nuttx/drivers/lcd/nokia6100.c index 4fabf7885..3677d8bfe 100644 --- a/nuttx/drivers/lcd/nokia6100.c +++ b/nuttx/drivers/lcd/nokia6100.c @@ -308,7 +308,7 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_LCD_REGDEBUG -# define lcddbg(format, arg...) llvdbg(format, ##arg) +# define lcddbg(format, ...) llvdbg(format, ##__VA_ARGS__) #else # define lcddbg(x...) #endif diff --git a/nuttx/drivers/lcd/p14201.c b/nuttx/drivers/lcd/p14201.c index 094380b59..dbd69a271 100644 --- a/nuttx/drivers/lcd/p14201.c +++ b/nuttx/drivers/lcd/p14201.c @@ -180,7 +180,7 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_LCD_RITDEBUG -# define ritdbg(format, arg...) vdbg(format, ##arg) +# define ritdbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define ritdbg(x...) #endif diff --git a/nuttx/drivers/lcd/skeleton.c b/nuttx/drivers/lcd/skeleton.c index f161b3a5e..bc58b53a3 100644 --- a/nuttx/drivers/lcd/skeleton.c +++ b/nuttx/drivers/lcd/skeleton.c @@ -90,7 +90,7 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_LCD_SKELDEBUG -# define skeldbg(format, arg...) vdbg(format, ##arg) +# define skeldbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define skeldbg(x...) #endif diff --git a/nuttx/drivers/lcd/ssd1306.c b/nuttx/drivers/lcd/ssd1306.c index d92075610..32e22e679 100644 --- a/nuttx/drivers/lcd/ssd1306.c +++ b/nuttx/drivers/lcd/ssd1306.c @@ -301,8 +301,8 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_DEBUG_LCD -# define lcddbg(format, arg...) dbg(format, ##arg) -# define lcdvdbg(format, arg...) vdbg(format, ##arg) +# define lcddbg(format, ...) dbg(format, ##__VA_ARGS__) +# define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define lcddbg(x...) # define lcdvdbg(x...) diff --git a/nuttx/drivers/lcd/st7567.c b/nuttx/drivers/lcd/st7567.c index cc95c603b..179c3d2e5 100644 --- a/nuttx/drivers/lcd/st7567.c +++ b/nuttx/drivers/lcd/st7567.c @@ -209,7 +209,7 @@ /* Debst7567 ******************************************************************************/ #ifdef CONFIG_LCD_ST7567DEBUG -# define st7567dbg(format, arg...) vdbg(format, ##arg) +# define st7567dbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define st7567dbg(x...) #endif diff --git a/nuttx/drivers/lcd/ug-2864ambag01.c b/nuttx/drivers/lcd/ug-2864ambag01.c index 4879c027f..51706026a 100644 --- a/nuttx/drivers/lcd/ug-2864ambag01.c +++ b/nuttx/drivers/lcd/ug-2864ambag01.c @@ -263,8 +263,8 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_DEBUG_LCD -# define lcddbg(format, arg...) dbg(format, ##arg) -# define lcdvdbg(format, arg...) vdbg(format, ##arg) +# define lcddbg(format, ...) dbg(format, ##__VA_ARGS__) +# define lcdvdbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define lcddbg(x...) # define lcdvdbg(x...) diff --git a/nuttx/drivers/lcd/ug-9664hswag01.c b/nuttx/drivers/lcd/ug-9664hswag01.c index 1ad2e1150..c649e26ca 100644 --- a/nuttx/drivers/lcd/ug-9664hswag01.c +++ b/nuttx/drivers/lcd/ug-9664hswag01.c @@ -224,7 +224,7 @@ /* Debug ******************************************************************************/ #ifdef CONFIG_DEBUG_LCD -# define lcddbg(format, arg...) vdbg(format, ##arg) +# define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__) #else # define lcddbg(x...) #endif -- cgit v1.2.3