[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241021091340.5243-2-thorsten.blum@linux.dev>
Date: Mon, 21 Oct 2024 11:13:40 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: 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/page_alloc: Use str_off_on() helper in build_all_zonelists()
Remove hard-coded strings by using the str_off_on() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 8afab64814dc..11d3fa3587db 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5495,7 +5495,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat)
pr_info("Built %u zonelists, mobility grouping %s. Total pages: %ld\n",
nr_online_nodes,
- page_group_by_mobility_disabled ? "off" : "on",
+ str_off_on(page_group_by_mobility_disabled),
vm_total_pages);
#ifdef CONFIG_NUMA
pr_info("Policy zone: %s\n", zone_names[policy_zone]);
--
2.47.0
Powered by blists - more mailing lists