mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
Merge pull request #29862 from mrc0mmand/udevadm-followups
A couple of follow-ups for `udevadm control`
This commit is contained in:
commit
e5a2d6f7d6
|
@ -190,7 +190,7 @@ int control_main(int argc, char *argv[], void *userdata) {
|
|||
}
|
||||
|
||||
if (arg_log_level >= 0) {
|
||||
r = udev_ctrl_send_set_log_level(uctrl, r);
|
||||
r = udev_ctrl_send_set_log_level(uctrl, arg_log_level);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to send request to set log level: %m");
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ int control_main(int argc, char *argv[], void *userdata) {
|
|||
return log_error_errno(r, "Failed to send request to update environment: %m");
|
||||
}
|
||||
|
||||
if (arg_max_children) {
|
||||
if (arg_max_children >= 0) {
|
||||
r = udev_ctrl_send_set_children_max(uctrl, arg_max_children);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to send request to set number of children: %m");
|
||||
|
|
Loading…
Reference in a new issue