journalctl: show boot id in the reboot context separator

This commit is contained in:
Ronan Pigott 2020-10-27 23:53:23 -07:00 committed by Lennart Poettering
parent f25e30dec4
commit ea394d48cc
1 changed files with 2 additions and 2 deletions

View 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;