Skip to contentSkip to conversation

locking/lockdep: Simplify data output in lockdep_stats_show()

PATCH New Markus Elfring 1 participant 1 message Jun 4

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

PATCH 1/1 locking/lockdep: Simplify data output in lockdep_stats_show()

From: Markus Elfring <[email protected]>
Date: Thu, 4 Jun 2026 12:23:32 +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.

---
 kernel/locking/lockdep_proc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
kernel/locking/lockdep_proc.c +1 -3
index 1916db9aa46b..b376fbc81ac0 100644
@@ -381,9 +381,7 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 	/*
 	 * Zapped classes and lockdep data buffers reuse statistics.
 	 */
-	seq_puts(m, "\n");
-	seq_printf(m, " zapped classes:                %11lu\n",
-			nr_zapped_classes);
+	seq_printf(m, "\n zapped classes:                %11lu\n", nr_zapped_classes);
 #ifdef CONFIG_PROVE_LOCKING
 	seq_printf(m, " zapped lock chains:            %11lu\n",
 			nr_zapped_lock_chains);
Signature · 1 line
2.54.0