From: Minfei Huang Date: Thu, 17 Mar 2016 21:21:00 +0000 (-0700) Subject: proc/base: make prompt shell start from new line after executing "cat /proc/$pid... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e2bc81da333;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git proc/base: make prompt shell start from new line after executing "cat /proc/$pid/wchan" 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 9e42411eef3f..b1755b23893e 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; }