diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-26 19:22:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-26 19:22:21 +0000 |
commit | 493da6bfa8b587cdc34f8d87e448112fac0768a4 (patch) | |
tree | a2e267d5c17cd0eb2d4df00b0e65c2ad68c5ec88 /nuttx/lib | |
parent | 637f649b594579ff5e2b831cc999cfb57b161eb5 (diff) | |
download | px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.tar.gz px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.tar.bz2 px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.zip |
Fixes for clean ez80 compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1965 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_dumpbuffer.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/nuttx/lib/lib_dumpbuffer.c b/nuttx/lib/lib_dumpbuffer.c index b11ebbedc..a090bcb61 100644 --- a/nuttx/lib/lib_dumpbuffer.c +++ b/nuttx/lib/lib_dumpbuffer.c @@ -42,6 +42,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/compiler.h> #include <sys/types.h> #include <debug.h> @@ -51,11 +52,19 @@ /* Select the lowest level debug interface available */ -# ifdef CONFIG_ARCH_LOWPUTC -# define message(format, arg...) lib_lowprintf(format, ##arg) +#ifdef CONFIG_CPP_HAVE_VARARGS +# ifdef CONFIG_ARCH_LOWPUTC +# define message(format, arg...) lib_lowprintf(format, ##arg) +# else +# define message(format, arg...) lib_rawprintf(format, ##arg) +# endif #else -# define message(format, arg...) lib_rawprintf(format, ##arg) -# endif +# ifdef CONFIG_ARCH_LOWPUTC +# define message lib_lowprintf +# else +# define message lib_rawprintf +# endif +#endif /**************************************************************************** * Public Functions @@ -69,7 +78,7 @@ * ****************************************************************************/ -int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen) +void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen) { int i, j, k; |