summaryrefslogtreecommitdiffstats
path: root/src/analyze
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-10 19:17:47 +0100
committerGitHub <noreply@github.com>2021-02-10 19:17:47 +0100
commitfa7924db0bd836e30021c9b2c0480f0beb1a85d6 (patch)
tree140ee965dbe69032363640110dec3fe8089d379f /src/analyze
parenttest: count call instructions as well (diff)
parenttest-string-util: add missing comma (diff)
downloadsystemd-fa7924db0bd836e30021c9b2c0480f0beb1a85d6.tar.xz
systemd-fa7924db0bd836e30021c9b2c0480f0beb1a85d6.zip
Merge pull request #11484 from keszybz/udevadm-error-logs
Use real return codes in _from_string() functions
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 3b953ac472..c25d11e0de 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -1574,7 +1574,7 @@ static int dump_exit_status(int argc, char *argv[], void *userdata) {
status = exit_status_from_string(argv[i]);
if (status < 0)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid exit status \"%s\".", argv[i]);
+ return log_error_errno(status, "Invalid exit status \"%s\".", argv[i]);
assert(status >= 0 && (size_t) status < ELEMENTSOF(exit_status_mappings));
r = table_add_many(table,