[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241018103150.96824-2-thorsten.blum@linux.dev>
Date: Fri, 18 Oct 2024 12:31:51 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Mike Rapoport <rppt@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...ux.dev>
---
mm/mm_init.c | 4 ++--
1 file 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");
}
--
2.47.0
Powered by blists - more mailing lists