modify lwip/arch.h

This commit is contained in:
lr 2024-05-16 16:03:36 +08:00
parent 3cec54bf5f
commit b2022bac12
2 changed files with 2 additions and 3 deletions

View File

@ -202,6 +202,5 @@ ing and verifying the IP, UDP, TCP and ICMP checksums by hardware:
---------- Lwip Debug options ----------
----------------------------------------
*/
#define LWIP_DEBUG 1
#endif /* LWIP_LWIPOPTS_H */

View File

@ -78,7 +78,7 @@
* systems, this should be defined to something less resource-consuming.
*/
#ifndef LWIP_PLATFORM_DIAG
#define LWIP_PLATFORM_DIAG(x) do {KPrintf x;} while(0)
#define LWIP_PLATFORM_DIAG(x) do {printf(x);} while(0)
// #include <stdio.h>
#include <stdlib.h>
#endif
@ -89,7 +89,7 @@
* systems, this should be defined to something less resource-consuming.
*/
#ifndef LWIP_PLATFORM_ASSERT
#define LWIP_PLATFORM_ASSERT(x) do {KPrintf("Assertion \"%s\" failed at line %d in %s\n", \
#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>