Make VNET_DEBUG a standalone compile-time option, i.e. decouple it from
INVARIANTS. Reviewed by: bz Approved by: re (rwatson), julian (mentor)
This commit is contained in:
parent
8d518523cc
commit
67addcde86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196228
@ -821,8 +821,9 @@ TDMA_TXRATE_QUARTER_DEFAULT opt_tdma.h
|
||||
TDMA_TXRATE_11NA_DEFAULT opt_tdma.h
|
||||
TDMA_TXRATE_11NG_DEFAULT opt_tdma.h
|
||||
|
||||
# Virtualize the network stack
|
||||
# Network stack virtualization options
|
||||
VIMAGE opt_global.h
|
||||
VNET_DEBUG opt_global.h
|
||||
|
||||
# Common Flash Interface (CFI) options
|
||||
CFI_SUPPORT_STRATAFLASH opt_cfi.h
|
||||
|
@ -107,9 +107,6 @@ void vnet_destroy(struct vnet *vnet);
|
||||
* Various macros -- get and set the current network stack, but also
|
||||
* assertions.
|
||||
*/
|
||||
#ifdef INVARIANTS
|
||||
#define VNET_DEBUG
|
||||
#endif
|
||||
#ifdef VNET_DEBUG
|
||||
#define VNET_ASSERT(condition) \
|
||||
if (!(condition)) { \
|
||||
|
Loading…
Reference in New Issue
Block a user