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>
This commit is contained in:
Thorsten Blum 2024-10-18 12:31:51 +02:00 committed by Mike Rapoport (Microsoft)
parent 8e929cb546
commit 4bb21dbb67

View File

@ -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");
}