summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2016-02-01 09:29:02 +0100
committerJan Synacek <jsynacek@redhat.com>2016-02-01 11:59:33 +0100
commitc34e939909710bf124e7741c3648592a30418ffd (patch)
tree0f9bc844685fae8c39b67849ddfc38c0f3f1eb87 /src/journal/journalctl.c
parent0f1a9a830c87d8accdc3a44d0a93ad343e52a7bd (diff)
journalctl: improve error messages when the specified boot is not found
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 69a2013df8..1686f38c4e 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -1136,10 +1136,11 @@ static int add_boot(sd_journal *j) {
const char *reason = (r == 0) ? "No such boot ID in journal" : strerror(-r);
if (sd_id128_is_null(arg_boot_id))
- log_error("Failed to look up boot %+i: %s", arg_boot_offset, reason);
+ log_error("Data from the specified boot (%+i) is not available: %s",
+ arg_boot_offset, reason);
else
- log_error("Failed to look up boot ID "SD_ID128_FORMAT_STR"%+i: %s",
- SD_ID128_FORMAT_VAL(arg_boot_id), arg_boot_offset, reason);
+ log_error("Data from the specified boot ("SD_ID128_FORMAT_STR") is not available: %s",
+ SD_ID128_FORMAT_VAL(arg_boot_id), reason);
return r == 0 ? -ENODATA : r;
}