mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 20:37:26 +00:00
Clarified debug levels by renaming level OFF to ALL (the old define still exists for now to prevent breaking old code)
This commit is contained in:
parent
98a58f9e67
commit
88d02a624a
@ -35,12 +35,13 @@
|
|||||||
#include "lwip/arch.h"
|
#include "lwip/arch.h"
|
||||||
|
|
||||||
/** lower two bits indicate debug level
|
/** lower two bits indicate debug level
|
||||||
* - 0 off
|
* - 0 all
|
||||||
* - 1 warning
|
* - 1 warning
|
||||||
* - 2 serious
|
* - 2 serious
|
||||||
* - 3 severe
|
* - 3 severe
|
||||||
*/
|
*/
|
||||||
#define LWIP_DBG_LEVEL_OFF 0x00
|
#define LWIP_DBG_LEVEL_ALL 0x00
|
||||||
|
#define LWIP_DBG_LEVEL_OFF LWIP_DBG_LEVEL_ALL /* compatibility define only */
|
||||||
#define LWIP_DBG_LEVEL_WARNING 0x01 /* bad checksums, dropped packets, ... */
|
#define LWIP_DBG_LEVEL_WARNING 0x01 /* bad checksums, dropped packets, ... */
|
||||||
#define LWIP_DBG_LEVEL_SERIOUS 0x02 /* memory allocation failures, ... */
|
#define LWIP_DBG_LEVEL_SERIOUS 0x02 /* memory allocation failures, ... */
|
||||||
#define LWIP_DBG_LEVEL_SEVERE 0x03
|
#define LWIP_DBG_LEVEL_SEVERE 0x03
|
||||||
|
@ -1591,7 +1591,7 @@
|
|||||||
* messages are written.
|
* messages are written.
|
||||||
*/
|
*/
|
||||||
#ifndef LWIP_DBG_MIN_LEVEL
|
#ifndef LWIP_DBG_MIN_LEVEL
|
||||||
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_OFF
|
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user