]> err.no Git - systemd/commitdiff
fix typo in log message priority handling
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 25 Dec 2009 13:47:59 +0000 (14:47 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 25 Dec 2009 13:47:59 +0000 (14:47 +0100)
libudev/libudev-private.h
udev/udevadm.c

index 28110d191c6963a46ab495990563ff2ab8afc3be..fe1575d60b27c149f7dc0f1e9cece391b1ba9455 100644 (file)
@@ -26,7 +26,7 @@ udev_log_null(struct udev *udev, const char *format, ...) {}
 #define udev_log_cond(udev, prio, arg...) \
   do { \
     if (udev_get_log_priority(udev) >= prio) \
-      udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg); \
+      udev_log(udev, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \
   } while (0)
 
 #ifdef ENABLE_LOGGING
index 3d94215ba97d04524516eca820354304973f5262..00c2350d356717812034cb5cef1be673cea1ff3e 100644 (file)
@@ -35,8 +35,7 @@ static void log_fn(struct udev *udev, int priority,
                fprintf(stderr, "%s: ", fn);
                vfprintf(stderr, format, args);
        } else {
-               if (priority <= LOG_ERR)
-                       vfprintf(stderr, format, args);
+               vfprintf(stderr, format, args);
                vsyslog(priority, format, args);
        }
 }