From 174cc87227dedf69f7d4aaf0fb6aad4c31408983 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 8 Feb 2019 12:29:05 +0100 Subject: [PATCH] Fix LWIP_ERROR macro - it should never be fatal (LWIP_ASSERT) The only difference should be: - LWIP_DEBUG enabled -> print a diag message - LWIP_DEBUG disabled -> NO diag message is printed (cherry picked from commit e479bd56dfee63b96c837c54b6906b55ee5249b7) --- src/include/lwip/debug.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/include/lwip/debug.h b/src/include/lwip/debug.h index baa6a409..579fd242 100644 --- a/src/include/lwip/debug.h +++ b/src/include/lwip/debug.h @@ -120,9 +120,7 @@ #endif /* LWIP_NOASSERT */ #ifndef LWIP_ERROR -#ifndef LWIP_NOASSERT -#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message) -#elif defined LWIP_DEBUG +#ifdef LWIP_DEBUG #define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message)) #else #define LWIP_PLATFORM_ERROR(message)