summaryrefslogtreecommitdiff
path: root/src/oom
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-06 10:22:03 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-09 11:11:25 +0200
commit9ca7e3d00d03cc5cfe42529a4770eebe02d3cca9 (patch)
treed137a9ea37ea59558bc52f2f35c5f6cd6e2873a8 /src/oom
parent46e23f9a8d1f49acc01dd4516f0232db039efb37 (diff)
downloadsystemd-9ca7e3d00d03cc5cfe42529a4770eebe02d3cca9.tar.gz
Replace format_bytes_cgroup_protection with FORMAT_BYTES_CGROUP_PROTECTION
Diffstat (limited to 'src/oom')
-rw-r--r--src/oom/oomd-util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/oom/oomd-util.c b/src/oom/oomd-util.c
index 4bf7db8c3e..ff0fc13c6f 100644
--- a/src/oom/oomd-util.c
+++ b/src/oom/oomd-util.c
@@ -521,8 +521,6 @@ void oomd_dump_swap_cgroup_context(const OomdCGroupContext *ctx, FILE *f, const
}
void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE *f, const char *prefix) {
- char mem_min[FORMAT_BYTES_MAX], mem_low[FORMAT_BYTES_MAX];
-
assert(ctx);
assert(f);
@@ -546,8 +544,8 @@ void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE
"%s\tMemory Low: %s\n"
"%s\tPgscan: %" PRIu64 "\n"
"%s\tLast Pgscan: %" PRIu64 "\n",
- strempty(prefix), format_bytes_cgroup_protection(mem_min, sizeof(mem_min), ctx->memory_min),
- strempty(prefix), format_bytes_cgroup_protection(mem_low, sizeof(mem_low), ctx->memory_low),
+ strempty(prefix), FORMAT_BYTES_CGROUP_PROTECTION(ctx->memory_min),
+ strempty(prefix), FORMAT_BYTES_CGROUP_PROTECTION(ctx->memory_low),
strempty(prefix), ctx->pgscan,
strempty(prefix), ctx->last_pgscan);
}