summaryrefslogtreecommitdiff
path: root/apps/examples/elf/elf_main.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-05-22 09:01:51 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-05-22 09:01:51 -0600
commit54f7552fbc21a3959636225bd8e80ba95fc6750c (patch)
tree9cc321d2ef1c24efd225f33840e2349bb6e4abd2 /apps/examples/elf/elf_main.c
parent34cc8f19dfc278d546a9dd8c00eebabe0bc3094d (diff)
downloadnuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.gz
nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.bz2
nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.zip
Change all variadic macros to C99 style
Diffstat (limited to 'apps/examples/elf/elf_main.c')
-rw-r--r--apps/examples/elf/elf_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/elf/elf_main.c b/apps/examples/elf/elf_main.c
index e1bdb4aa5..88c6e804f 100644
--- a/apps/examples/elf/elf_main.c
+++ b/apps/examples/elf/elf_main.c
@@ -106,11 +106,11 @@
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG
-# define message(format, arg...) dbg(format, ##arg)
-# define err(format, arg...) dbg(format, ##arg)
+# define message(format, ...) dbg(format, ##__VA_ARGS__)
+# define err(format, ...) dbg(format, ##__VA_ARGS__)
# else
-# define message(format, arg...) printf(format, ##arg)
-# define err(format, arg...) fprintf(stderr, format, ##arg)
+# define message(format, ...) printf(format, ##__VA_ARGS__)
+# define err(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
# endif
#else
# ifdef CONFIG_DEBUG