Skip to contentSkip to conversation

zsmalloc: Simplify data output in zs_stats_size_show()

PATCH Applied Markus Elfring 1 participant 1 message Jun 4

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zsmalloc: Simplify data output in zs_stats_size_show()

From: Markus Elfring <[email protected]>
Date: Thu, 4 Jun 2026 10:20:03 +0200

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.

---
 mm/zsmalloc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/zsmalloc.c +1 -2
index 63128ddb7959..83f5820c45f9 100644
@@ -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]);
Signature · 1 line
2.54.0