Skip to content

Commit e8c1a29

Browse files
tobluxakpm00
authored andcommitted
mm/show_mem: use str_yes_no() helper in show_free_areas()
Remove hard-coded strings by using the str_yes_no() helper function. Link: https://lkml.kernel.org/r/20241026103552.6790-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 1bc542c commit e8c1a29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mm/show_mem.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
285285
#endif
286286
K(node_page_state(pgdat, NR_PAGETABLE)),
287287
K(node_page_state(pgdat, NR_SECONDARY_PAGETABLE)),
288-
pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES ?
289-
"yes" : "no");
288+
str_yes_no(pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES));
290289
}
291290

292291
for_each_populated_zone(zone) {

0 commit comments

Comments
 (0)