summaryrefslogtreecommitdiffstats
path: root/src/shared/output-mode.c
diff options
context:
space:
mode:
authorDaniel Braunwarth <daniel@braunwarth.dev>2022-09-22 18:35:19 +0200
committerDaniel Braunwarth <daniel@braunwarth.dev>2022-09-23 10:07:03 +0200
commit893bcd3d074022bd52618cb682152cb822878636 (patch)
treefd636b0ef90ba4d39163f92f1a3032a11237dcc8 /src/shared/output-mode.c
parentlogs-show: move timestamp reading into show_journal_entry() (diff)
downloadsystemd-893bcd3d074022bd52618cb682152cb822878636.tar.xz
systemd-893bcd3d074022bd52618cb682152cb822878636.zip
shared/logs-show: add new --output= format "short-delta"
This new output formatting option is similar to "short-monotonic" but also shows the time delta between two messages. This fixes #24641.
Diffstat (limited to 'src/shared/output-mode.c')
-rw-r--r--src/shared/output-mode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/output-mode.c b/src/shared/output-mode.c
index 1645b756df..026bf19a59 100644
--- a/src/shared/output-mode.c
+++ b/src/shared/output-mode.c
@@ -28,6 +28,7 @@ static const char *const output_mode_table[_OUTPUT_MODE_MAX] = {
[OUTPUT_SHORT_ISO_PRECISE] = "short-iso-precise",
[OUTPUT_SHORT_PRECISE] = "short-precise",
[OUTPUT_SHORT_MONOTONIC] = "short-monotonic",
+ [OUTPUT_SHORT_DELTA] = "short-delta",
[OUTPUT_SHORT_UNIX] = "short-unix",
[OUTPUT_VERBOSE] = "verbose",
[OUTPUT_EXPORT] = "export",