All of lore.kernel.org
 help / color / mirror / Atom feed
From: "majianpeng" <majianpeng@gmail.com>
To: "viro" <viro@zeniv.linux.org.uk>
Cc: "linux-fsdevel" <linux-fsdevel@vger.kernel.org>
Subject: [PATCH] fs/proc:Add '\n' in sprintf in function proc_pid_wchan().
Date: Thu, 31 May 2012 09:56:03 +0800	[thread overview]
Message-ID: <201205310955563595414@gmail.com> (raw)

Signed-off-by: majianpeng <majianpeng@gmail.com>
---
 fs/proc/base.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index d7d7118..206d153 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -276,9 +276,9 @@ static int proc_pid_wchan(struct task_struct *task, char *buffer)
 		if (!ptrace_may_access(task, PTRACE_MODE_READ))
 			return 0;
 		else
-			return sprintf(buffer, "%lu", wchan);
+			return sprintf(buffer, "%lu\n", wchan);
 	else
-		return sprintf(buffer, "%s", symname);
+		return sprintf(buffer, "%s\n", symname);
 }
 #endif /* CONFIG_KALLSYMS */
 
-- 
1.7.5.4

 				
--------------
majianpeng
2012-05-31


                 reply	other threads:[~2012-05-31  1:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201205310955563595414@gmail.com \
    --to=majianpeng@gmail.com \
    --cc=linux-fsdevel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.