Makefile.am: add check that <assert.h> is not used from unexpected files.
[sliver-openvswitch.git] / lib / vlog.c
index 2587cde..7867b07 100644 (file)
@@ -43,6 +43,11 @@ VLOG_DEFINE_THIS_MODULE(vlog);
 
 COVERAGE_DEFINE(vlog_recursive);
 
+/* ovs_assert() logs the assertion message, so using ovs_assert() in this
+ * source file could cause recursion. */
+#undef ovs_assert
+#define ovs_assert use_assert_instead_of_ovs_assert_in_this_module
+
 /* Name for each logging level. */
 static const char *level_names[VLL_N_LEVELS] = {
 #define VLOG_LEVEL(NAME, SYSLOG_LEVEL) #NAME,