vlog: Fix logic error in update_min_level().
authorBen Pfaff <blp@nicira.com>
Fri, 23 Jul 2010 22:27:38 +0000 (15:27 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 23 Jul 2010 22:28:08 +0000 (15:28 -0700)
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

index 1c6d25b..ddda266 100644 (file)
@@ -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;
             }
         }