mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
journalctl: show boot id in the reboot context separator
This commit is contained in:
parent
f25e30dec4
commit
ea394d48cc
@ -2672,8 +2672,8 @@ int main(int argc, char *argv[]) {
|
|||||||
if (r >= 0) {
|
if (r >= 0) {
|
||||||
if (previous_boot_id_valid &&
|
if (previous_boot_id_valid &&
|
||||||
!sd_id128_equal(boot_id, previous_boot_id))
|
!sd_id128_equal(boot_id, previous_boot_id))
|
||||||
printf("%s-- Reboot --%s\n",
|
printf("%s-- Boot "SD_ID128_FORMAT_STR" --%s\n",
|
||||||
ansi_highlight(), ansi_normal());
|
ansi_highlight(), SD_ID128_FORMAT_VAL(boot_id), ansi_normal());
|
||||||
|
|
||||||
previous_boot_id = boot_id;
|
previous_boot_id = boot_id;
|
||||||
previous_boot_id_valid = true;
|
previous_boot_id_valid = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user