diff options
-rw-r--r-- | nuttx/include/debug.h | 3 | ||||
-rw-r--r-- | nuttx/lib/lib_dumpbuffer.c | 19 | ||||
-rw-r--r-- | nuttx/netutils/webclient/webclient.c | 1 |
3 files changed, 17 insertions, 6 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index 485bf8a20..e0caefeeb 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -42,6 +42,7 @@ #include <nuttx/config.h> #include <nuttx/compiler.h> +#include <sys/types.h> /**************************************************************************** * Definitions @@ -436,7 +437,7 @@ EXTERN int lib_lowprintf(const char *format, ...); /* Dump a buffer of data */ -EXTERN int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen); +EXTERN void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen); /* If the cross-compiler's pre-processor does not support variable * length arguments, then these additional APIs will be built. 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; diff --git a/nuttx/netutils/webclient/webclient.c b/nuttx/netutils/webclient/webclient.c index 3c31e6ad2..c939108ee 100644 --- a/nuttx/netutils/webclient/webclient.c +++ b/nuttx/netutils/webclient/webclient.c @@ -66,6 +66,7 @@ # include <net/uip/resolv.h> #endif +#include <arpa/inet.h> #include <netinet/in.h> #include <net/uip/uip-lib.h> #include <net/uip/webclient.h> |