summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2009-09-14 13:56:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-14 13:56:38 +0200
commitbbfeee28fc00642a01bf3f9c24e6c0e942d4adf8 (patch)
tree3b558fbc339f76005eb3b6f8fb9184b35e7966c0 /udev/udevadm.c
parentb6a2637524e4b94ba51abcf5ee42f3676c9755ed (diff)
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).
Diffstat (limited to 'udev/udevadm.c')
-rw-r--r--udev/udevadm.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}