mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
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 e479bd56df
)
This commit is contained in:
parent
0d6d8922f2
commit
174cc87227
@ -120,9 +120,7 @@
|
|||||||
#endif /* LWIP_NOASSERT */
|
#endif /* LWIP_NOASSERT */
|
||||||
|
|
||||||
#ifndef LWIP_ERROR
|
#ifndef LWIP_ERROR
|
||||||
#ifndef LWIP_NOASSERT
|
#ifdef LWIP_DEBUG
|
||||||
#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message)
|
|
||||||
#elif defined LWIP_DEBUG
|
|
||||||
#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message))
|
#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message))
|
||||||
#else
|
#else
|
||||||
#define LWIP_PLATFORM_ERROR(message)
|
#define LWIP_PLATFORM_ERROR(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user