chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udevadm: print all messages to stderr with priority higher or equal than LOG_ERR
[elogind.git]
/
udev
/
udevadm.c
diff --git
a/udev/udevadm.c
b/udev/udevadm.c
index 452489a0c752c4087fcf52be4772cfe770e33197..3d94215ba97d04524516eca820354304973f5262 100644
(file)
--- 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);
}
}