]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oom: drop invalid %m in the log message 24271/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Aug 2022 10:26:42 +0000 (19:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Aug 2022 13:15:52 +0000 (22:15 +0900)
Fixes https://github.com/systemd/systemd/issues/23785#issuecomment-1210030100.

src/oom/oomd-manager.c

index a28e97a178a4b7e45337dc036a87ba3ade98a5e1..e49eef65779c786f91d48623819445a4d304db05 100644 (file)
@@ -83,7 +83,7 @@ static int process_managed_oom_message(Manager *m, uid_t uid, JsonVariant *param
 
                         r = cg_path_get_owner_uid(message.path, &cg_uid);
                         if (r < 0) {
-                                log_debug("Failed to get cgroup %s owner uid: %m", message.path);
+                                log_debug_errno(r, "Failed to get cgroup %s owner uid: %m", message.path);
                                 continue;
                         }