1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-20 14:03:39 +03:00

oom: drop invalid %m in the log message

Fixes https://github.com/systemd/systemd/issues/23785#issuecomment-1210030100.

(cherry picked from commit b6f6df4cb07ebf736f0f4b60a845049306088797)
(cherry picked from commit a3348ba748e17d18e2bbf56776cdb1b331cd4525)
This commit is contained in:
Yu Watanabe 2022-08-10 19:26:42 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 658013a7f7
commit 2aeff0f39a

View 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;
}