net/lwip: change to ndbg in LWIP_PLATFORM_ASSERT
LWIP_PLATFORM_ASSERT use printf. Instead of it, changing it to ndbg.
* systems, this should be defined to something less resource-consuming.
*/
#ifndef LWIP_PLATFORM_ASSERT
-#define LWIP_PLATFORM_ASSERT(x) do { printf("Assertion \"%s\" failed at line %d in %s\n", \
- x, __LINE__, __FILE__); fflush(NULL); abort(); } while (0)
-#include <stdio.h>
-#include <stdlib.h>
+#define LWIP_PLATFORM_ASSERT(x) \
+ do { \
+ ndbg("Assertion \"%s\" failed at line %d in %s\n", \
+ x, __LINE__, __FILE__); \
+ abort(); \
+ } while (0)
#endif
/** Define this to 1 in arch/cc.h of your port if you do not want to
