summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-unit-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-09-27 20:18:16 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-09-27 20:19:58 +0200
commit8dc40c25a46fb6bc99a051d8cf8b796fdf290947 (patch)
tree9479137a3965d69145766740c92038c86fe96935 /src/shared/bus-unit-util.c
parentsystemctl: fix printing of RootImageOptions (diff)
downloadsystemd-8dc40c25a46fb6bc99a051d8cf8b796fdf290947.tar.xz
systemd-8dc40c25a46fb6bc99a051d8cf8b796fdf290947.zip
shared: adjust whitespace and formatting
Diffstat (limited to 'src/shared/bus-unit-util.c')
-rw-r--r--src/shared/bus-unit-util.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
index dc92c5f609..fc92331436 100644
--- a/src/shared/bus-unit-util.c
+++ b/src/shared/bus-unit-util.c
@@ -656,9 +656,9 @@ static int bus_append_cgroup_property(sd_bus_message *m, const char *field, cons
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));
@@ -728,7 +728,10 @@ static int bus_append_cgroup_property(sd_bus_message *m, const char *field, cons
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 {