diff mbox

[1/2] drm/etnaviv: Use seq_putc() in etnaviv_buffer_dump()

Message ID ca952d88-058e-d6bd-dcdf-77f1fba1b346@users.sourceforge.net (mailing list archive)
State New, archived
Headers show

Commit Message

SF Markus Elfring May 8, 2017, 11:21 a.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 8 May 2017 13:00:28 +0200

Two single characters (line breaks) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 5255278dde56..b4deb26e1e40 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -182,12 +182,12 @@  static void etnaviv_buffer_dump(struct etnaviv_gpu *gpu, struct seq_file *m)
 
 	for (i = 0; i < size / 4; i++) {
 		if (i && !(i % 4))
-			seq_puts(m, "\n");
+			seq_putc(m, '\n');
 		if (i % 4 == 0)
 			seq_printf(m, "\t0x%p: ", ptr + i);
 		seq_printf(m, "%08x ", *(ptr + i));
 	}
-	seq_puts(m, "\n");
+	seq_putc(m, '\n');
 }
 
 static int etnaviv_ring_show(struct etnaviv_gpu *gpu, struct seq_file *m)