[PATCH] procfs: fix the output format in /proc/PID/wchan

From: Yafang Shao
Date: Mon Nov 19 2018 - 06:18:33 EST


Just add the missing newline.

Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
---
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