From ea394d48cc66329413e2b10713f0c0c4eb18c08d Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Tue, 27 Oct 2020 23:53:23 -0700 Subject: [PATCH] journalctl: show boot id in the reboot context separator --- src/journal/journalctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 8bc0aa22de..d1ed682985 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -2672,8 +2672,8 @@ int main(int argc, char *argv[]) { if (r >= 0) { if (previous_boot_id_valid && !sd_id128_equal(boot_id, previous_boot_id)) - printf("%s-- Reboot --%s\n", - ansi_highlight(), ansi_normal()); + printf("%s-- Boot "SD_ID128_FORMAT_STR" --%s\n", + ansi_highlight(), SD_ID128_FORMAT_VAL(boot_id), ansi_normal()); previous_boot_id = boot_id; previous_boot_id_valid = true;