Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1501361 > unrolled thread

[PATCH 3/3] ARM-OMAP2+: pm-debug: Use seq_putc() in two functions

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2016-10-15 23:00 +0200
Last post2016-10-15 23:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] ARM-OMAP2+: pm-debug: Use seq_putc() in two functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-15 23:00 +0200

#1501361 — [PATCH 3/3] ARM-OMAP2+: pm-debug: Use seq_putc() in two functions

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2016-10-15 23:00 +0200
Subject[PATCH 3/3] ARM-OMAP2+: pm-debug: Use seq_putc() in two functions
Message-ID<ssEdH-4pY-1@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 15 Oct 2016 22:30:44 +0200

A single character (line break) should be put into a sequence at the end.
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>
---
 arch/arm/mach-omap2/pm-debug.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index 0b33986..003a6cb 100644
--- a/arch/arm/mach-omap2/pm-debug.c
+++ b/arch/arm/mach-omap2/pm-debug.c
@@ -114,8 +114,7 @@ static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user)
 		seq_printf(s, ",RET-MEMBANK%d-OFF:%d", i + 1,
 				pwrdm->ret_mem_off_counter[i]);
 
-	seq_printf(s, "\n");
-
+	seq_putc(s, '\n');
 	return 0;
 }
 
@@ -138,7 +137,7 @@ static int pwrdm_dbg_show_timer(struct powerdomain *pwrdm, void *user)
 		seq_printf(s, ",%s:%lld", pwrdm_state_names[i],
 			pwrdm->state_timer[i]);
 
-	seq_printf(s, "\n");
+	seq_putc(s, '\n');
 	return 0;
 }
 
-- 
2.10.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web