Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp983204imu; Thu, 22 Nov 2018 08:15:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/XKzINrmxt184QR1sn9p1p3ad09fuhWCd/vYyKy1EcMyjGFFHTMiZMr8TMlDRILbET5BC53 X-Received: by 2002:a17:902:5a0b:: with SMTP id q11mr11979657pli.186.1542903309538; Thu, 22 Nov 2018 08:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542903309; cv=none; d=google.com; s=arc-20160816; b=JfZKTNEBskIZNX2QvKSwv5rCgIESRgTdwd8Jnpxioyas1aothp0tJDqyqBoAxGr4lU cg94Hhpusx2GmJ3oddfI4IED6AqCX0//FQ+LMZSnleytuO33qoaYsCKxHprLP6KW5jBh mbUJl4LKusYFT4p+rs5mHCbcw0Of8tzZwET7mXsLGhgsdoxiKy96UDGeBcLJS31RisOW TZ7EaY+IRFLEtIueGgwG4iNkxUz1UPMrAn1e0qRfcWnPUGnrlvq3sLiDd6sJ4r9AXljO 8yIOBmgX1BO0qwIcHMrb2jvo3KClwMCFo35+2BR1JysEdLBayCQXgWKOwSf2EkXs6TKH 57xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/oGxMb1luISLKgff95PTNmKGjbyKoXijbk+ehRy1ZyM=; b=eJTvDq/S5YJcuectTmq63xwc+ki3g8SvT88hDnqow8Sdc3I8GOFYPEoDlFJ1Xuup88 92r9RgOZKuDfDPETCBqyYU7XEA7Hscahi8X5NC0kk2QDoN+3KqkB2oIGREtihDtugfRH G/9N4lqnsoRZV7LYHOuEhIuU1h16OgzAw6SQ0882Y1Ja+5vmDlsM0BjWPrmSZvFc6nbg s3H6zV694iMzS8yWkaSAhM6EdFRbN3YuQ26swrVwB+H/n4wMVoMYPswlNocnIHLK53Va jbNkaf22SpEx8DNNH+CRTzjkjpI69FD/LQSe5/RjwCf3mKqkWaT0KBCT5bbjadBoKzPP LpWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si16039814plr.127.2018.11.22.08.14.53; Thu, 22 Nov 2018 08:15:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392015AbeKVOGJ (ORCPT + 99 others); Thu, 22 Nov 2018 09:06:09 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:55130 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732997AbeKVOGJ (ORCPT ); Thu, 22 Nov 2018 09:06:09 -0500 Received: from localhost.localdomain (c-24-6-170-16.hsd1.ca.comcast.net [24.6.170.16]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9B7A7504; Thu, 22 Nov 2018 03:28:45 +0000 (UTC) Date: Wed, 21 Nov 2018 19:28:44 -0800 From: Andrew Morton To: Yafang Shao Cc: adobriyan@gmail.com, viro@zeniv.linux.org.uk, keescook@chromium.org, orcunov@openvz.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] procfs: fix the output format in /proc/PID/wchan Message-Id: <20181121192844.1cd1c2fa4801a324d059176c@linux-foundation.org> In-Reply-To: <1542626272-29129-1-git-send-email-laoar.shao@gmail.com> References: <1542626272-29129-1-git-send-email-laoar.shao@gmail.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Nov 2018 19:17:52 +0800 Yafang Shao wrote: > Just add the missing newline. > > ... > > --- 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 */ What is presently wrong with the wchan output? The changelog should explain such things, please. Providing example output with the patch unapplied and then with the patch applied would help us to understand the patch's effect. Thanks.