Skip to content

Commit ab505e8

Browse files
tobluxakpm00
authored andcommitted
mm/page_alloc: use str_off_on() helper in build_all_zonelists()
Remove hard-coded strings by using the str_off_on() helper function. Link: https://lkml.kernel.org/r/20241021091340.5243-2-thorsten.blum@linux.dev Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 8717734 commit ab505e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5493,7 +5493,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat)
54935493

54945494
pr_info("Built %u zonelists, mobility grouping %s. Total pages: %ld\n",
54955495
nr_online_nodes,
5496-
page_group_by_mobility_disabled ? "off" : "on",
5496+
str_off_on(page_group_by_mobility_disabled),
54975497
vm_total_pages);
54985498
#ifdef CONFIG_NUMA
54995499
pr_info("Policy zone: %s\n", zone_names[policy_zone]);

0 commit comments

Comments
 (0)