]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journalctl.c
Merge pull request #13011 from keszybz/auto-erase
[thirdparty/systemd.git] / src / journal / journalctl.c
index 2a82c241a5f560d2c5a5623988ea53f148e5a448..3e1ca5b1ba233b140e59aaa543613b9d90462ab7 100644 (file)
@@ -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",