Skip to content

Commit

Permalink
mm/show_mem: use str_yes_no() helper in show_free_areas()
Browse files Browse the repository at this point in the history
Remove hard-coded strings by using the str_yes_no() helper function.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
toblux authored and akpm00 committed Nov 7, 2024
1 parent 1bc542c commit e8c1a29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/show_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
#endif
K(node_page_state(pgdat, NR_PAGETABLE)),
K(node_page_state(pgdat, NR_SECONDARY_PAGETABLE)),
pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES ?
"yes" : "no");
str_yes_no(pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES));
}

for_each_populated_zone(zone) {
Expand Down

0 comments on commit e8c1a29

Please sign in to comment.