]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
zsmalloc: simplify data output in zs_stats_size_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 4 Jun 2026 08:20:03 +0000 (10:20 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Jun 2026 18:31:28 +0000 (11:31 -0700)
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>
mm/zsmalloc.c

index 63128ddb79598fe3fff546ee0205e6689b391b3a..83f5820c45f93ec832230b6c55bc1197724ca84f 100644 (file)
@@ -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]);