From: Ben Pfaff Date: Fri, 23 Jul 2010 22:27:38 +0000 (-0700) Subject: vlog: Fix logic error in update_min_level(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56cee53bd62d92bf2639e22beba3a867891a7513;p=openvswitch 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. --- diff --git a/lib/vlog.c b/lib/vlog.c index 1c6d25bb..ddda2662 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; } }