* [PATCH] mm/show_mem: Use str_yes_no() helper in show_free_areas()
@ 2024-10-26 10:35 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2024-10-26 10:35 UTC (permalink / raw)
To: Andrew Morton; +Cc: Thorsten Blum, linux-mm, linux-kernel
Remove hard-coded strings by using the str_yes_no() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
mm/show_mem.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/show_mem.c b/mm/show_mem.c
index ec885a398fa0..43afb56abbd3 100644
--- a/mm/show_mem.c
+++ b/mm/show_mem.c
@@ -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) {
--
2.47.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-26 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-26 10:35 [PATCH] mm/show_mem: Use str_yes_no() helper in show_free_areas() Thorsten Blum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox