From: Markus Elfring Date: Thu, 4 Jun 2026 08:20:03 +0000 (+0200) Subject: zsmalloc: simplify data output in zs_stats_size_show() X-Git-Tag: v7.2-rc1~59^2~114 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=b35a8205a3cc87c1fcfb5d2ba25f49ea9342cbc7;p=thirdparty%2Flinux.git 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 Reviewed-by: Sergey Senozhatsky Cc: Minchan Kim Signed-off-by: Andrew Morton --- 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]);