diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 05:21:42 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-12 01:19:18 +0900 |
commit | 7fb1d980aff8b035d96a34bd30efff261f3a5494 (patch) | |
tree | 9e421df1b8fabee1e55e2e9f186552ca9dbd8c90 /src/firstboot | |
parent | bde8467a0de6fd2ec0a0738d9f3f0689ae5dd37f (diff) | |
download | systemd-7fb1d980aff8b035d96a34bd30efff261f3a5494.tar.gz |
tree-wide: propagate error in xxx_from-string()
Diffstat (limited to 'src/firstboot')
-rw-r--r-- | src/firstboot/firstboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 904612ab4a..a9cc03cc3f 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -1146,9 +1146,9 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_MACHINE_ID: - if (sd_id128_from_string(optarg, &arg_machine_id) < 0) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), - "Failed to parse machine id %s.", optarg); + r = sd_id128_from_string(optarg, &arg_machine_id); + if (r < 0) + return log_error_errno(r, "Failed to parse machine id %s.", optarg); break; |