udev: include error cause of parsing --children-max option in log message

This commit is contained in:
Yu Watanabe 2018-10-25 18:13:55 +09:00
parent c4d44cba4d
commit 389f9bf2cf
1 changed files with 1 additions and 1 deletions

View File

@ -1546,7 +1546,7 @@ static int parse_argv(int argc, char *argv[]) {
case 'c':
r = safe_atou(optarg, &arg_children_max);
if (r < 0)
log_warning("Invalid --children-max ignored: %s", optarg);
log_warning_errno(r, "Failed to parse --children-max= value '%s', ignoring: %m", optarg);
break;
case 'e':
r = parse_sec(optarg, &arg_exec_delay_usec);