From: Yafang Shao <laoar.shao@gmail.com>
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 <laoar.shao@gmail.com>
Subject: [PATCH] procfs: fix the output format in /proc/PID/wchan
Date: Mon, 19 Nov 2018 19:17:52 +0800 [thread overview]
Message-ID: <1542626272-29129-1-git-send-email-laoar.shao@gmail.com> (raw)
Just add the missing newline.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
---
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
next reply other threads:[~2018-11-19 11:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 11:17 Yafang Shao [this message]
2018-11-22 3:28 ` [PATCH] procfs: fix the output format in /proc/PID/wchan Andrew Morton
2018-11-22 11:40 ` Alexey Dobriyan
2018-11-22 13:29 ` Yafang Shao
2018-11-22 13:38 ` Alexey Dobriyan
2018-11-23 9:57 ` Yafang Shao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1542626272-29129-1-git-send-email-laoar.shao@gmail.com \
--to=laoar.shao@gmail.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=keescook@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orcunov@openvz.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).