diff mbox series

mm/slub: Use seq_putc() in slab_debugfs_show()

Message ID 13c34802-c4f5-4e21-b675-4422680a7a66@web.de (mailing list archive)
State New
Headers show
Series mm/slub: Use seq_putc() in slab_debugfs_show() | expand

Commit Message

Markus Elfring July 14, 2024, 6:06 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 14 Jul 2024 19:55:59 +0200

Single line breaks should be put into a sequence.
Thus use the corresponding function “seq_putc”.

This issue was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 mm/slub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.45.2
diff mbox series

Patch

diff --git a/mm/slub.c b/mm/slub.c
index 3520acaf9afa..49f567968f81 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -7112,13 +7112,13 @@  static int slab_debugfs_show(struct seq_file *seq, void *v)
 			handle = READ_ONCE(l->handle);
 			if (handle) {
 				nr_entries = stack_depot_fetch(handle, &entries);
-				seq_puts(seq, "\n");
+				seq_putc(seq, '\n');
 				for (j = 0; j < nr_entries; j++)
 					seq_printf(seq, "        %pS\n", (void *)entries[j]);
 			}
 		}
 #endif
-		seq_puts(seq, "\n");
+		seq_putc(seq, '\n');
 	}

 	if (!idx && !t->count)