From b2022bac1262345beafe65e36c45851838c981cc Mon Sep 17 00:00:00 2001 From: lr <1234@qq.com> Date: Thu, 16 May 2024 16:03:36 +0800 Subject: [PATCH] modify lwip/arch.h --- .../XiZi_AIoT/services/net/net_server/include/arch/lwipopts.h | 1 - .../XiZi_AIoT/services/net/net_server/include/lwip/arch.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/arch/lwipopts.h b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/arch/lwipopts.h index b4e8e6d07..9d7cdd406 100644 --- a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/arch/lwipopts.h +++ b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/arch/lwipopts.h @@ -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 */ diff --git a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/arch.h b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/arch.h index 8baa89dd8..1235f80f9 100644 --- a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/arch.h +++ b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/arch.h @@ -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 #include #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 #include