From: Qinghuang Feng Subject: [PATCH] fs/binfmt_misc.c: let binfmt status be more readable Date: Mon, 17 Nov 2008 15:38:16 +0800 Message-ID: <49211f7b.09876e0a.012d.079f@mx.google.com> Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, qhfeng.kernel@gmail.com To: linux-kernel@vger.kernel.org Return-path: Received: from ti-out-0910.google.com ([209.85.142.190]:27719 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754814AbYKQHik (ORCPT ); Mon, 17 Nov 2008 02:38:40 -0500 Received: by ti-out-0910.google.com with SMTP id b6so1452338tic.23 for ; Sun, 16 Nov 2008 23:38:38 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index f2744ab..72e8b24 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -652,7 +652,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)); }