]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/cgroup: fix indentation
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 5 Oct 2025 13:58:08 +0000 (22:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 5 Oct 2025 13:58:11 +0000 (22:58 +0900)
Addresses https://github.com/systemd/systemd/pull/38906#discussion_r2363292495.

src/core/cgroup.c

index f6b0c5deea2b7ed955685f4d5d495f667cc920c1..ce9056ddafd265bd9b83fd4347ca9e40b98d6e7a 100644 (file)
@@ -3033,22 +3033,22 @@ int unit_check_oom(Unit *u) {
 
         if (ctx->memory_oom_group) {
                 r = cg_get_keyed_attribute(
-                        "memory",
-                        crt->cgroup_path,
-                        "memory.events.local",
-                        STRV_MAKE("oom_group_kill"),
-                        &oom_kill);
+                                "memory",
+                                crt->cgroup_path,
+                                "memory.events.local",
+                                STRV_MAKE("oom_group_kill"),
+                                &oom_kill);
                 if (r < 0 && !IN_SET(r, -ENOENT, -ENXIO))
                         return log_unit_debug_errno(u, r, "Failed to read oom_group_kill field of memory.events.local cgroup attribute, ignoring: %m");
         }
 
         if (isempty(oom_kill)) {
                 r = cg_get_keyed_attribute(
-                        "memory",
-                        crt->cgroup_path,
-                        "memory.events",
-                        STRV_MAKE("oom_kill"),
-                        &oom_kill);
+                                "memory",
+                                crt->cgroup_path,
+                                "memory.events",
+                                STRV_MAKE("oom_kill"),
+                                &oom_kill);
                 if (r < 0 && !IN_SET(r, -ENOENT, -ENXIO))
                         return log_unit_debug_errno(u, r, "Failed to read oom_kill field of memory.events cgroup attribute: %m");
         }