Adds a define for the last defined module number. Change-Id: I1ea9230317a849e911900cf69e96ed85a65d3a8c Signed-off-by: Shashank Ram <r...@vmware.com> --- datapath-windows/ovsext/Debug.c | 1 + datapath-windows/ovsext/Debug.h | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/datapath-windows/ovsext/Debug.c b/datapath-windows/ovsext/Debug.c index a96d38d..c3d14ae 100644 --- a/datapath-windows/ovsext/Debug.c +++ b/datapath-windows/ovsext/Debug.c @@ -25,6 +25,7 @@ UINT32 ovsLogFlags = 0xffffffff; UINT32 ovsLogLevel = OVS_DBG_DEFAULT; +BUILD_ASSERT(OVS_DBG_LAST < 31); /* 'ovsLogLevel' is 32 bits. */ #define OVS_LOG_BUFFER_SIZE 384 diff --git a/datapath-windows/ovsext/Debug.h b/datapath-windows/ovsext/Debug.h index 2175130..cae6ac9 100644 --- a/datapath-windows/ovsext/Debug.h +++ b/datapath-windows/ovsext/Debug.h @@ -43,9 +43,8 @@ #define OVS_DBG_CONTRK BIT32(23) #define OVS_DBG_GENEVE BIT32(24) -#define OVS_DBG_LAST 24 // Set this to the last defined module number. -#define OVS_DBG_RESERVED BIT32(31) -//Please add above OVS_DBG_LAST. +#define OVS_DBG_LAST 24 /* Set this to the last defined module number. */ +/* Please add above OVS_DBG_LAST. */ #define OVS_DBG_ERROR DPFLTR_ERROR_LEVEL #define OVS_DBG_WARN DPFLTR_WARNING_LEVEL -- 2.9.3.windows.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev