From 56cee53bd62d92bf2639e22beba3a867891a7513 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 23 Jul 2010 15:27:38 -0700 Subject: [PATCH] vlog: Fix logic error in update_min_level(). Commit 480ce8ab "vlog: Make the vlog module catalog program-specific." accidentally inverted the logic in this function, which broke the "-v" to various OVS programs as well as other mechanisms to set logging to non-default levels. --- lib/vlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vlog.c b/lib/vlog.c index 1c6d25bbd..ddda26620 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -189,7 +189,7 @@ update_min_level(struct vlog_module *module) for (facility = 0; facility < VLF_N_FACILITIES; facility++) { if (log_file || facility != VLF_FILE) { enum vlog_level level = module->levels[facility]; - if (level < module->min_level) { + if (level > module->min_level) { module->min_level = level; } } -- 2.43.0