Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2606505imu; Mon, 19 Nov 2018 03:19:54 -0800 (PST) X-Google-Smtp-Source: AJdET5fGVGHoQq6KqmbtmEL01UgWzQpf7Qc0Oa0Uv+Dr8SVfuufbT/XC176RQJv+VMszgevaHA9Y X-Received: by 2002:a65:66ce:: with SMTP id c14mr19556243pgw.450.1542626394207; Mon, 19 Nov 2018 03:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542626394; cv=none; d=google.com; s=arc-20160816; b=KQ4fu064o6gIojJOoJGYpK2LInOBqE75ls0JGrpfLZBz5gGwUNBTGTGnPVBCj0Gmqc bKPeLJPv9g0Hr706mLmVivqaAJP7Sqp8VjIn0CaIf/JiM8YJQ7CyR+uOLQFa2tLnUZdj DWzIc1RtyEHTdcRJcLjGmhkl+opUi4YgYKgyOieXIi59MCGFFezZKPz+DTNBhMc7M8qe 5lFbRkyTEZTW8ELlv9kCgXEIpLf/ggL7Tr7dtVBwU+LApXbG4aoqIE2CVtBgg+12axAc nbRSNg5Z3CllGxs63jMBZGkAhFReXMDjQiBWJ/+JpasS006SFeuzMihCgBF4Z9zqREiW epGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kfBH9F4i189EQmuJ9zt541sD4dDToCzdMjhZOHZ6HC8=; b=xFulI4TtvYNf5wdJbW8sskPv16R+5iddtU/jDdKZp6jYzSFHOk4fJKikvVyoF6a9Q7 //4Eua7IEh1QPIPXwbUVSwkXVkgDVeg+kJiRPAiz1dhXIrwZspmJ5upyBCYaEhbHZXjg /H3FhJPVtFEj0Gomcsgavs4/0wpDG6AUQR/j3yLP7EzMZUo061SF43J+zwP+8yHJFKcz uil+eIn8a1gC7haf0HOoBveW7gxaHEmuvI9YXqHoqbrVKh5p4ERBtXmB12RYUrXj2H6o CK0+jcg0Md/JnYRWmopf1t/0BI/h/cIOoqmqS78fkX4tRxOMQkNPSvlyCu+SDPvtCtNT 6o5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="q/PqeYFx"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70-v6si31168492pla.156.2018.11.19.03.19.39; Mon, 19 Nov 2018 03:19:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="q/PqeYFx"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbeKSVlt (ORCPT + 99 others); Mon, 19 Nov 2018 16:41:49 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45604 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727857AbeKSVlt (ORCPT ); Mon, 19 Nov 2018 16:41:49 -0500 Received: by mail-pl1-f194.google.com with SMTP id a14so9849067plm.12; Mon, 19 Nov 2018 03:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=kfBH9F4i189EQmuJ9zt541sD4dDToCzdMjhZOHZ6HC8=; b=q/PqeYFxYW7n0hg/0nt/qJPwu8fNLsijnBWaWXy9g2XmL2oa+RkBdbE8w3IyDe+p8E ubaPuxkFO1krq/kmlTJBQMoNu9jr7HPkK+IvL0M/TGnWCEh4KoDGBVgsGAXJ88iMXL3S NU0OIVzeoCmnajh+/DqoecoKMHGcY0ecOvLpUpSMxadDnKj9dTxullvdz9ZiiUB/0ByH HtVssyFuyVcthHJ1xAqzq7fyBC7SnXtpe92HIMs4jUapepu0vsEuM31U22f5Rk459LNx K5MiG52LOB+n65p9jTdhTG8EkIDNHuUl3gpN2kE3+kk4y9QOhIem0ttmCMTn2GrWfH8i m1xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kfBH9F4i189EQmuJ9zt541sD4dDToCzdMjhZOHZ6HC8=; b=X2SO20jkr5FWedvYUmoMZuRoSROa4jIiZhjRGzSIxg4Xe3KVChL6JgA+FYjWOTIs8r s45QmCRtXbQtxTuxD7a0tpa4HKbQ70Qli6mkG9j9mvaaMdpBG3u378YwTVes5kzrX0EL Va4zvxw5tZUqLtU6qanIA/4o66h8qJ/7N8ROrVOFJr1ECHXJaqctBi38ixNODSGKvZRY l2s2qzJpMajWolMqfJ4DguUVgNIclXl5mhhxM3UIWU7mJRJrb4kTimxqAT6JQZIvgUev p1AuylbcODDxvamt2G5e6C+eFgingZCyEG7TiOiRw9K29f7JiVaDdzjWh9H1CYDrTOal DP5w== X-Gm-Message-State: AGRZ1gKjPk19mIImzXRa6TiS6fjhdF6ttNjzF6lp70kbQ0RLDao9jJyb lOIu+0Kt0lsa/lG3ngiDyio= X-Received: by 2002:a17:902:24e7:: with SMTP id l36-v6mr21908996plg.243.1542626310346; Mon, 19 Nov 2018 03:18:30 -0800 (PST) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id m9sm34825716pgd.32.2018.11.19.03.18.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 03:18:29 -0800 (PST) From: Yafang Shao To: adobriyan@gmail.com, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, keescook@chromium.org, orcunov@openvz.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Yafang Shao Subject: [PATCH] procfs: fix the output format in /proc/PID/wchan Date: Mon, 19 Nov 2018 19:17:52 +0800 Message-Id: <1542626272-29129-1-git-send-email-laoar.shao@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just add the missing newline. Signed-off-by: Yafang Shao --- 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