summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-16 01:09:09 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-16 01:09:09 +0200
commit9048b11f8b0173a3fbbbf6ce2716abba05d202ed (patch)
tree045875dc52a91c60185b6c2dd5d0626aae744e7c /src/journal
parentb1c806231b2822c66986d72b26a05ee09ac4b051 (diff)
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...
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journalctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 9fbc9a3489..0498f294ae 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -915,9 +915,10 @@ int main(int argc, char *argv[]) {
if (r > 0) {
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
- 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(end_buf, sizeof(end_buf), end));
}
@@ -955,7 +956,7 @@ int main(int argc, char *argv[]) {
if (r >= 0) {
if (previous_boot_id_valid &&
!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_valid = true;