summaryrefslogtreecommitdiff
path: root/apps/system/zmodem
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/system/zmodem
parent34cc8f19dfc278d546a9dd8c00eebabe0bc3094d (diff)
downloadpx4-nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.gz
px4-nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.bz2
px4-nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.zip
Change all variadic macros to C99 style
Diffstat (limited to 'apps/system/zmodem')
-rw-r--r--apps/system/zmodem/zm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/system/zmodem/zm.h b/apps/system/zmodem/zm.h
index ec653d796..88c46a269 100644
--- a/apps/system/zmodem/zm.h
+++ b/apps/system/zmodem/zm.h
@@ -229,16 +229,16 @@
*/
#ifdef CONFIG_DEBUG_ZMODEM
-# define zmprintf(format, arg...) fprintf(stderr, format, ##arg)
-# define zmdbg(format, arg...) fprintf(stderr, EXTRA_FMT format EXTRA_ARG, ##arg)
+# define zmprintf(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
+# define zmdbg(format, ...) fprintf(stderr, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
#else
# undef CONFIG_SYSTEM_ZMODEM_DUMPBUFFER
# ifdef CONFIG_CPP_HAVE_VARARGS
# define zmprintf(x...)
# define zmdbg(x...)
# else
-# define zmprintf (void)
-# define zmdbg (void)
+# define zmprintf (void)
+# define zmdbg (void)
# endif
#endif