summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShashank Ram <rams@vmware.com>2016-09-19 16:16:02 -0700
committerGurucharan Shetty <guru@ovn.org>2016-09-20 07:39:19 -0700
commit9ef3a410b2d93ae6890c6e831dd3ed84d3c374d9 (patch)
tree71b9e5c69b8ba3cbb7c001920d69ea2d26976228
parentb17c822805390ebfe624a50bc446597efd10f212 (diff)
downloadopenvswitch-9ef3a410b2d93ae6890c6e831dd3ed84d3c374d9.tar.gz
datapath-windows: Add define for last module number
Adds a define for the last defined module number. Signed-off-by: Shashank Ram <rams@vmware.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
-rw-r--r--AUTHORS1
-rw-r--r--datapath-windows/ovsext/Debug.c1
-rw-r--r--datapath-windows/ovsext/Debug.h4
3 files changed, 4 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 21ca73a95..335f79b1f 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -219,6 +219,7 @@ Scott Mann sdmnix@gmail.com
Selvamuthukumar smkumar@merunetworks.com
Shad Ansari shad.ansari@hpe.com
Shan Wei davidshan@tencent.com
+Shashank Ram rams@vmware.com
Shashwat Srivastava shashwat.srivastava@tcs.com
Shih-Hao Li shli@nicira.com
Shu Shen shu.shen@radisys.com
diff --git a/datapath-windows/ovsext/Debug.c b/datapath-windows/ovsext/Debug.c
index a96d38d40..c3d14ae54 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 935f8584a..cae6ac961 100644
--- a/datapath-windows/ovsext/Debug.h
+++ b/datapath-windows/ovsext/Debug.h
@@ -43,8 +43,8 @@
#define OVS_DBG_CONTRK BIT32(23)
#define OVS_DBG_GENEVE BIT32(24)
-#define OVS_DBG_RESERVED BIT32(31)
-//Please add above OVS_DBG_RESERVED.
+#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