[PATCH] mm/slub: Use seq_putc() in slab_debugfs_show()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
 mm/slub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
--
2.45.2






[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux