summaryrefslogtreecommitdiffstats
path: root/src/oom/oomd-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-28 14:43:45 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-31 23:47:48 +0200
commit64377c6089bbeb1d87cbdbacbe38dd19d78c4cec (patch)
treef83f9357133aa3551ceb68bcaf50fe9f6a36acb9 /src/oom/oomd-manager.c
parentcore/cgroup: fix setting SocketBindAllow=/SocketBindDeny= through DBus (diff)
downloadsystemd-64377c6089bbeb1d87cbdbacbe38dd19d78c4cec.tar.xz
systemd-64377c6089bbeb1d87cbdbacbe38dd19d78c4cec.zip
oomd: drop unused key
Diffstat (limited to '')
-rw-r--r--src/oom/oomd-manager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c
index 3f050cdbb2..c39e75562d 100644
--- a/src/oom/oomd-manager.c
+++ b/src/oom/oomd-manager.c
@@ -811,7 +811,6 @@ int manager_get_dump_string(Manager *m, char **ret) {
_cleanup_fclose_ FILE *f = NULL;
OomdCGroupContext *c;
size_t size;
- char *key;
int r;
assert(m);
@@ -834,11 +833,11 @@ int manager_get_dump_string(Manager *m, char **ret) {
oomd_dump_system_context(&m->system_context, f, "\t");
fprintf(f, "Swap Monitored CGroups:\n");
- HASHMAP_FOREACH_KEY(c, key, m->monitored_swap_cgroup_contexts)
+ HASHMAP_FOREACH(c, m->monitored_swap_cgroup_contexts)
oomd_dump_swap_cgroup_context(c, f, "\t");
fprintf(f, "Memory Pressure Monitored CGroups:\n");
- HASHMAP_FOREACH_KEY(c, key, m->monitored_mem_pressure_cgroup_contexts)
+ HASHMAP_FOREACH(c, m->monitored_mem_pressure_cgroup_contexts)
oomd_dump_memory_pressure_cgroup_context(c, f, "\t");
r = fflush_and_check(f);