From: Qinghuang Feng Date: Tue, 6 Jan 2009 22:41:38 +0000 (-0800) Subject: fs/binfmt_misc.c: add terminating newline to /proc/sys/fs/binfmt_misc/status X-Git-Tag: v2.6.29-rc1~325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87113e806a9ee48c6c989513ef3e9c1d31e06ac4;p=platform%2Fkernel%2Flinux-exynos.git fs/binfmt_misc.c: add terminating newline to /proc/sys/fs/binfmt_misc/status The following is what it looks like before patching. It is not much readable. user@ubuntu:/proc/sys/fs/binfmt_misc$ cat status enableduser@ubuntu:/proc/sys/fs/binfmt_misc$ Signed-off-by: Qinghuang Feng Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index e1158cb4fbd6..c4e83537ead7 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -649,7 +649,7 @@ static const struct file_operations bm_register_operations = { static ssize_t bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) { - char *s = enabled ? "enabled" : "disabled"; + char *s = enabled ? "enabled\n" : "disabled\n"; return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); }