All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/proc:Add '\n' in sprintf in function proc_pid_wchan().
@ 2012-05-31  1:56 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2012-05-31  1:56 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-31  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31  1:56 [PATCH] fs/proc:Add '\n' in sprintf in function proc_pid_wchan() majianpeng

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.