summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl-show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemctl/systemctl-show.c')
-rw-r--r--src/systemctl/systemctl-show.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c
index 77dd075eb3..f78cf307ca 100644
--- a/src/systemctl/systemctl-show.c
+++ b/src/systemctl/systemctl-show.c
@@ -1651,6 +1651,24 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m
bus_print_property_value(name, expected_value, flags, affinity);
return 1;
+ } else if (streq(name, "LogFilterPatterns")) {
+ int is_allowlist;
+ const char *pattern;
+
+ r = sd_bus_message_enter_container(m, SD_BUS_TYPE_ARRAY, "(bs)");
+ if (r < 0)
+ return bus_log_parse_error(r);
+
+ while ((r = sd_bus_message_read(m, "(bs)", &is_allowlist, &pattern)) > 0)
+ bus_print_property_valuef(name, expected_value, flags, "%s%s", is_allowlist ? "" : "~", pattern);
+ if (r < 0)
+ return bus_log_parse_error(r);
+
+ r = sd_bus_message_exit_container(m);
+ if (r < 0)
+ return bus_log_parse_error(r);
+
+ return 1;
} else if (streq(name, "MountImages")) {
_cleanup_free_ char *paths = NULL;