Use LWIP_PLATFORM_DIAG for LWIP

fprintf() is not guaranteed to be available. Or even printf().

Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
This commit is contained in:
Vlad Lungu authored and Olaf Bergmann committed 2016-02-16 15:44:59 +01:00
1 parent 75d00c8a50
commit 81865503a1
1 file changed
+5
+5
View File
@@ -34,6 +34,11 @@
#include "encode.h"
#include "net.h"
#ifdef WITH_LWIP
# define fprintf(fd, ...) LWIP_PLATFORM_DIAG((__VA_ARGS__))
# define fflush(...)
#endif
#ifdef WITH_CONTIKI
# ifndef DEBUG
# define DEBUG DEBUG_PRINT