Commit 4bb21dbb authored by Thorsten Blum's avatar Thorsten Blum Committed by Mike Rapoport (Microsoft)
Browse files

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: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20241018103150.96824-2-thorsten.blum@linux.dev


Signed-off-by: default avatarMike Rapoport (Microsoft) <rppt@kernel.org>
parent 8e929cb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");
}