diff options
author | Daniel Braunwarth <daniel@braunwarth.dev> | 2022-09-22 18:35:19 +0200 |
---|---|---|
committer | Daniel Braunwarth <daniel@braunwarth.dev> | 2022-09-23 10:07:03 +0200 |
commit | 893bcd3d074022bd52618cb682152cb822878636 (patch) | |
tree | fd636b0ef90ba4d39163f92f1a3032a11237dcc8 /src/shared/output-mode.c | |
parent | logs-show: move timestamp reading into show_journal_entry() (diff) | |
download | systemd-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.c | 1 |
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", |