diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-03 23:56:17 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-05 02:43:56 +0900 |
commit | 4bbccb02eaee35e20d3031e7ba4b3d08631ce934 (patch) | |
tree | 27fed6568b9faa5a2586c5929159b79a4002c294 /src/journal/journalctl.c | |
parent | 7fa6223f67662e8d5ee26092240b4e1d091a69f5 (diff) | |
download | systemd-4bbccb02eaee35e20d3031e7ba4b3d08631ce934.tar.gz |
tree-wide: introduce strerror_safe()
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 27518b6363..c25bbc3f26 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1425,7 +1425,7 @@ static int add_boot(sd_journal *j) { r = get_boots(j, NULL, &boot_id, arg_boot_offset); assert(r <= 1); if (r <= 0) { - const char *reason = (r == 0) ? "No such boot ID in journal" : strerror(-r); + const char *reason = (r == 0) ? "No such boot ID in journal" : strerror_safe(r); if (sd_id128_is_null(arg_boot_id)) log_error("Data from the specified boot (%+i) is not available: %s", |