[PATCH] fs/proc:Add '\n' in sprintf in function proc_pid_wchan().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: majianpeng <majianpeng@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux