aboutsummaryrefslogtreecommitdiffstats
diff options
authorMarkus Elfring <elfring@users.sourceforge.net>2026-06-04 10:20:03 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-06-21 11:31:28 -0700
commitb35a8205a3cc87c1fcfb5d2ba25f49ea9342cbc7 (patch)
treeaac181f016f36eb761e2b644c0ad16a06c0b9c82
parent67c2696cf76aa276376fdd845c7d1b3e16b97af2 (diff)
downloadath-b35a8205a3cc87c1fcfb5d2ba25f49ea9342cbc7.tar.gz
zsmalloc: simplify data output in zs_stats_size_show()
Move the specification for a line break from a seq_puts() call to a seq_printf() call. The source code was transformed by using the Coccinelle software. Link: https://lore.kernel.org/126a924b-6f68-43bf-ae5a-449fb93e527b@web.de Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/zsmalloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 63128ddb79598..83f5820c45f93 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -565,8 +565,7 @@ static int zs_stats_size_show(struct seq_file *s, void *v)
total_freeable += freeable;
}
- seq_puts(s, "\n");
- seq_printf(s, " %5s %5s ", "Total", "");
+ seq_printf(s, "\n %5s %5s ", "Total", "");
for (fg = ZS_INUSE_RATIO_10; fg < NR_FULLNESS_GROUPS; fg++)
seq_printf(s, "%9lu ", inuse_totals[fg]);