mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
journalctl: harmonise in-stream comments
From now on, always use ANSI-SQL-style comments in log streams, i.e. prefix with --. We also suffix things with this, just to be nice...
This commit is contained in:
parent
b1c806231b
commit
9048b11f8b
@ -915,9 +915,10 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
if (r > 0) {
|
if (r > 0) {
|
||||||
if (arg_follow)
|
if (arg_follow)
|
||||||
printf("---- Logs begin at %s.\n", format_timestamp(start_buf, sizeof(start_buf), start));
|
printf("-- Logs begin at %s. --\n",
|
||||||
|
format_timestamp(start_buf, sizeof(start_buf), start));
|
||||||
else
|
else
|
||||||
printf("---- Logs begin at %s, end at %s.\n",
|
printf("-- Logs begin at %s, end at %s. --\n",
|
||||||
format_timestamp(start_buf, sizeof(start_buf), start),
|
format_timestamp(start_buf, sizeof(start_buf), start),
|
||||||
format_timestamp(end_buf, sizeof(end_buf), end));
|
format_timestamp(end_buf, sizeof(end_buf), end));
|
||||||
}
|
}
|
||||||
@ -955,7 +956,7 @@ 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(ANSI_HIGHLIGHT_ON "---- Reboot ----" ANSI_HIGHLIGHT_OFF "\n");
|
printf(ANSI_HIGHLIGHT_ON "-- Reboot --" ANSI_HIGHLIGHT_OFF "\n");
|
||||||
|
|
||||||
previous_boot_id = boot_id;
|
previous_boot_id = boot_id;
|
||||||
previous_boot_id_valid = true;
|
previous_boot_id_valid = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user