diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2024-10-26 12:35:53 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-11-07 14:38:08 -0800 |
commit | e8c1a296b8066734ef20797ab77e03a90b0c9be8 (patch) | |
tree | 91bd66971bad66f49e40ad418c0bf60fb1236022 | |
parent | 1bc542c6a0d1444559ab75823a89a94d244bf933 (diff) | |
download | lwn-e8c1a296b8066734ef20797ab77e03a90b0c9be8.tar.gz lwn-e8c1a296b8066734ef20797ab77e03a90b0c9be8.zip |
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>
-rw-r--r-- | mm/show_mem.c | 3 |
1 files changed, 1 insertions, 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) { |