udev: include error cause of parsing --children-max option in log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Oct 2018 09:13:55 +0000 (18:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Nov 2018 14:21:49 +0000 (23:21 +0900)
src/udev/udevd.c

index 4f93ec4..2564295 100644 (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);