Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbcCAOLc (ORCPT ); Tue, 1 Mar 2016 09:11:32 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35621 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbcCAOLa (ORCPT ); Tue, 1 Mar 2016 09:11:30 -0500 From: Minfei Huang To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, mhuang@redhat.com, Minfei Huang Subject: [PATCH] proc/base: Make prompt shell start from new line after executing "cat /proc/$pid/wchan" Date: Tue, 1 Mar 2016 22:11:26 +0800 Message-Id: <1456841486-8952-1-git-send-email-mnfhuang@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 633 Lines: 23 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 --- 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