diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-22 09:01:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-22 09:01:51 -0600 |
commit | 54f7552fbc21a3959636225bd8e80ba95fc6750c (patch) | |
tree | 9cc321d2ef1c24efd225f33840e2349bb6e4abd2 /apps/system/i2c | |
parent | 34cc8f19dfc278d546a9dd8c00eebabe0bc3094d (diff) | |
download | nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.gz nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.tar.bz2 nuttx-54f7552fbc21a3959636225bd8e80ba95fc6750c.zip |
Change all variadic macros to C99 style
Diffstat (limited to 'apps/system/i2c')
-rw-r--r-- | apps/system/i2c/i2ctool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/system/i2c/i2ctool.h b/apps/system/i2c/i2ctool.h index d8cc07203..beaf8c104 100644 --- a/apps/system/i2c/i2ctool.h +++ b/apps/system/i2c/i2ctool.h @@ -124,9 +124,9 @@ /* Output is via printf but can be changed using this macro */ #ifdef CONFIG_CPP_HAVE_VARARGS -# define i2c_output(v, fmt...) printf(v, ##fmt) +# define i2c_output(v, ...) printf(v, ##__VA_ARGS__) #else -# define i2c_output printf +# define i2c_output printf #endif /**************************************************************************** |