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 --- apps/system/vi/vi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/system/vi') diff --git a/apps/system/vi/vi.c b/apps/system/vi/vi.c index 4fbc643a8..35b2a8610 100644 --- a/apps/system/vi/vi.c +++ b/apps/system/vi/vi.c @@ -149,8 +149,8 @@ #ifdef CONFIG_CPP_HAVE_VARARGS # if CONFIG_SYSTEM_VI_DEBUGLEVEL > 0 -# define vidbg(format, arg...) \ - syslog(EXTRA_FMT format EXTRA_ARG, ##arg) +# define vidbg(format, ...) \ + syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) # define vvidbg(format, ap) \ vsyslog(format, ap) # else @@ -159,8 +159,8 @@ # endif # if CONFIG_SYSTEM_VI_DEBUGLEVEL > 1 -# define vivdbg(format, arg...) \ - syslog(EXTRA_FMT format EXTRA_ARG, ##arg) +# define vivdbg(format, ...) \ + syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) # else # define vivdbg(x...) # endif -- cgit v1.2.3