mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] proc/base: Make prompt shell start from new line after executing "cat /proc/$pid/wchan"
@ 2016-03-01 14:11 Minfei Huang
  0 siblings, 0 replies; only message in thread
From: Minfei Huang @ 2016-03-01 14:11 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, mhuang, Minfei Huang

It is not elegant that prompt shell does not start from new line after
executing "cat /proc/$pid/wchan". Make prompt shell start from new line.

Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 4f764c2..0100ab4 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -434,7 +434,7 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
 			&& !lookup_symbol_name(wchan, symname))
 		seq_printf(m, "%s", symname);
 	else
-		seq_putc(m, '0');
+		seq_puts(m, "0\n");
 
 	return 0;
 }
-- 
2.5.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-01 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-01 14:11 [PATCH] proc/base: Make prompt shell start from new line after executing "cat /proc/$pid/wchan" Minfei Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®