From 1d67ec16c44711bbfb50ac7dd8bb2fb6e64a80f3 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 25 Dec 2009 14:47:59 +0100 Subject: [PATCH] fix typo in log message priority handling --- libudev/libudev-private.h | 2 +- udev/udevadm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libudev/libudev-private.h b/libudev/libudev-private.h index 28110d19..fe1575d6 100644 --- a/libudev/libudev-private.h +++ b/libudev/libudev-private.h @@ -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 diff --git a/udev/udevadm.c b/udev/udevadm.c index 3d94215b..00c2350d 100644 --- a/udev/udevadm.c +++ b/udev/udevadm.c @@ -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); } } -- 2.39.5