diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-28 14:43:45 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-31 23:47:48 +0200 |
commit | 64377c6089bbeb1d87cbdbacbe38dd19d78c4cec (patch) | |
tree | f83f9357133aa3551ceb68bcaf50fe9f6a36acb9 /src/oom/oomd-manager.c | |
parent | core/cgroup: fix setting SocketBindAllow=/SocketBindDeny= through DBus (diff) | |
download | systemd-64377c6089bbeb1d87cbdbacbe38dd19d78c4cec.tar.xz systemd-64377c6089bbeb1d87cbdbacbe38dd19d78c4cec.zip |
oomd: drop unused key
Diffstat (limited to '')
-rw-r--r-- | src/oom/oomd-manager.c | 5 |
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); |