summaryrefslogtreecommitdiffstats
path: root/src/shared/logs-show.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-19 11:35:36 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-20 21:46:01 +0100
commitc5da14cd59e51d704c0fcf1d34798198ba51a5bc (patch)
tree315ab4fde15c85d306d5ea01b8a38f1b5ff6c466 /src/shared/logs-show.h
parentlogs-show: use json_variant_unref_many() where appropriate (diff)
downloadsystemd-c5da14cd59e51d704c0fcf1d34798198ba51a5bc.tar.xz
systemd-c5da14cd59e51d704c0fcf1d34798198ba51a5bc.zip
journalctl: don't convert between strv/Set for each log line
If output fields are specified, let's store this in a Set right-away, instead of converting between strv and Set again and again for each line. This is not only faster, but also simpler and shorter.
Diffstat (limited to '')
-rw-r--r--src/shared/logs-show.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h
index 0800b55c03..a15bda6886 100644
--- a/src/shared/logs-show.h
+++ b/src/shared/logs-show.h
@@ -18,7 +18,7 @@ int show_journal_entry(
OutputMode mode,
unsigned n_columns,
OutputFlags flags,
- char **output_fields,
+ Set *output_fields,
const size_t highlight[2],
bool *ellipsized,
dual_timestamp *previous_ts,