]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: show boot id in the reboot context separator
authorRonan Pigott <rpigott@berkeley.edu>
Wed, 28 Oct 2020 06:53:23 +0000 (23:53 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Nov 2020 11:17:03 +0000 (12:17 +0100)
src/journal/journalctl.c

index 8bc0aa22dea5bed2f24ef04edaec0449be73b466..d1ed68298553242759dcfce237146520be649781 100644 (file)
@@ -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;