diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2024-10-18 12:31:51 +0200 |
---|---|---|
committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2024-10-18 19:05:58 +0300 |
commit | 4bb21dbb6728fbe6cb7e2f7dc7e5388962c4125b (patch) | |
tree | b48946159f2468890d3ab51e9f5a11136fac17c0 /mm/mm_init.c | |
parent | 8e929cb546ee42c9a61d24fae60605e9e3192354 (diff) |
mm: Use str_on_off() helper function in report_meminit()
Remove hard-coded strings by using the helper function str_on_off().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20241018103150.96824-2-thorsten.blum@linux.dev
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'mm/mm_init.c')
-rw-r--r-- | mm/mm_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c index 4ba5607aaf19..253972926183 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -2573,8 +2573,8 @@ static void __init report_meminit(void) stack = "off"; pr_info("mem auto-init: stack:%s, heap alloc:%s, heap free:%s\n", - stack, want_init_on_alloc(GFP_KERNEL) ? "on" : "off", - want_init_on_free() ? "on" : "off"); + stack, str_on_off(want_init_on_alloc(GFP_KERNEL)), + str_on_off(want_init_on_free())); if (want_init_on_free()) pr_info("mem auto-init: clearing system memory may take some time...\n"); } |