summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/udev/udevd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 0661f7be00..f14efbe203 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1377,7 +1377,10 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
int prio;
prio = util_log_priority(value);
- log_set_max_level(prio);
+ if (prio < 0)
+ log_warning("invalid udev.log-priority ignored: %s", value);
+ else
+ log_set_max_level(prio);
} else if (streq(key, "children-max")) {
r = safe_atou(value, &arg_children_max);
if (r < 0)