From bbfeee28fc00642a01bf3f9c24e6c0e942d4adf8 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Mon, 14 Sep 2009 13:56:38 +0200 Subject: udevadm: print all messages to stderr with priority higher or equal than LOG_ERR It is needed to prevent errors in udev from going unnoticed (e.g. when udevd is not running). --- udev/udevadm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'udev/udevadm.c') diff --git a/udev/udevadm.c b/udev/udevadm.c index 452489a0c7..3d94215ba9 100644 --- a/udev/udevadm.c +++ b/udev/udevadm.c @@ -35,6 +35,8 @@ 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); vsyslog(priority, format, args); } } -- cgit v1.2.3-54-g00ecf