Skip to content

Commit

Permalink
mm/page_alloc: use str_off_on() helper in build_all_zonelists()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thorsten Blum authored and Andrew Morton committed Nov 7, 2024
1 parent 8717734 commit ab505e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5493,7 +5493,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]);
Expand Down

0 comments on commit ab505e8

Please sign in to comment.