if (!name_with_equal)
return log_oom();
- if (!filter || strv_contains(filter, name) ||
+ if (!filter ||
+ strv_contains(filter, name) ||
(expected_value = strv_find_startswith(filter, name_with_equal))) {
+
r = sd_bus_message_peek_type(m, NULL, &contents);
if (r < 0)
return r;
if (r >= 0) {
char *n;
- /* When this is a percentage we'll convert this into a relative value in the range 0…UINT32_MAX
- * and pass it in the MemoryLowScale property (and related ones). This way the physical memory
- * size can be determined server-side. */
+ /* When this is a percentage we'll convert this into a relative value in the range
+ * 0…UINT32_MAX and pass it in the MemoryLowScale property (and related ones). This
+ * way the physical memory size can be determined server-side. */
n = strjoina(field, "Scale");
r = sd_bus_message_append(m, "(sv)", n, "u", UINT32_SCALE_FROM_PERMYRIAD(r));
return 1;
}
- if (cgroup_io_limit_type_from_string(field) >= 0 || STR_IN_SET(field, "BlockIOReadBandwidth", "BlockIOWriteBandwidth")) {
+ if (cgroup_io_limit_type_from_string(field) >= 0 ||
+ STR_IN_SET(field, "BlockIOReadBandwidth",
+ "BlockIOWriteBandwidth")) {
+
if (isempty(eq))
r = sd_bus_message_append(m, "(sv)", field, "a(st)", 0);
else {
static const char* const systemctl_show_mode_table[_SYSTEMCTL_SHOW_MODE_MAX] = {
[SYSTEMCTL_SHOW_PROPERTIES] = "show",
- [SYSTEMCTL_SHOW_STATUS] = "status",
- [SYSTEMCTL_SHOW_HELP] = "help",
+ [SYSTEMCTL_SHOW_STATUS] = "status",
+ [SYSTEMCTL_SHOW_HELP] = "help",
};
DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(systemctl_show_mode, SystemctlShowMode);