]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/show_mem: use str_yes_no() helper in show_free_areas()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 26 Oct 2024 10:35:53 +0000 (12:35 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:28 +0000 (21:29 -0700)
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>
mm/show_mem.c

index ec885a398fa09ed95222243d09a018eb8fa68c69..43afb56abbd3e1f436452ef551dd8149545ccb13 100644 (file)
@@ -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) {