linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] procfs: fix the output format in /proc/PID/wchan
@ 2018-11-19 11:17 Yafang Shao
  2018-11-22  3:28 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Yafang Shao @ 2018-11-19 11:17 UTC (permalink / raw)
  To: adobriyan, akpm, viro, keescook, orcunov
  Cc: linux-kernel, linux-fsdevel, Yafang Shao

Just add the missing newline.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
---
 fs/proc/base.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index ce34654..d7f49fb 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -370,11 +370,12 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
 	wchan = get_wchan(task);
 	if (wchan && !lookup_symbol_name(wchan, symname)) {
 		seq_puts(m, symname);
+		seq_putc(m, '\n');
 		return 0;
 	}
 
 print0:
-	seq_putc(m, '0');
+	seq_puts(m, "0\n");
 	return 0;
 }
 #endif /* CONFIG_KALLSYMS */
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-23  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-19 11:17 [PATCH] procfs: fix the output format in /proc/PID/wchan Yafang Shao
2018-11-22  3:28 ` Andrew Morton
2018-11-22 11:40   ` Alexey Dobriyan
2018-11-22 13:29     ` Yafang Shao
2018-11-22 13:38       ` Alexey Dobriyan
2018-11-23  9:57         ` Yafang Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).