Skip to content

Commit 4bb21db

Browse files
tobluxrppt
authored andcommitted
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>
1 parent 8e929cb commit 4bb21db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/mm_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,8 +2573,8 @@ static void __init report_meminit(void)
25732573
stack = "off";
25742574

25752575
pr_info("mem auto-init: stack:%s, heap alloc:%s, heap free:%s\n",
2576-
stack, want_init_on_alloc(GFP_KERNEL) ? "on" : "off",
2577-
want_init_on_free() ? "on" : "off");
2576+
stack, str_on_off(want_init_on_alloc(GFP_KERNEL)),
2577+
str_on_off(want_init_on_free()));
25782578
if (want_init_on_free())
25792579
pr_info("mem auto-init: clearing system memory may take some time...\n");
25802580
}

0 commit comments

Comments
 (0)