public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Cc: gregkh@suse.de
Subject: [PATCH] debufs: make built in types add a \n to their output
Date: Wed, 9 Mar 2005 16:26:22 -0800	[thread overview]
Message-ID: <1110414382208@kroah.com> (raw)
In-Reply-To: <20050310002444.GA32153@kroah.com>

ChangeSet 1.2033, 2005/03/09 15:24:07-08:00, gregkh@suse.de

[PATCH] debufs: make built in types add a \n to their output

Thanks to Alessandro Rubini <rubini@gnudd.com> for pointing this out.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


 fs/debugfs/file.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/fs/debugfs/file.c b/fs/debugfs/file.c
--- a/fs/debugfs/file.c	2005-03-09 16:23:09 -08:00
+++ b/fs/debugfs/file.c	2005-03-09 16:23:09 -08:00
@@ -52,7 +52,7 @@
 	char buf[32];								\
 	type *val = file->private_data;						\
 										\
-	snprintf(buf, sizeof(buf), format, *val);				\
+	snprintf(buf, sizeof(buf), format "\n", *val);				\
 	return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));\
 }										\
 static ssize_t write_file_##type(struct file *file, const char __user *user_buf,\


  reply	other threads:[~2005-03-10  1:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10  0:24 [BK PATCH] debugfs fixes for 2.6.11 Greg KH
2005-03-10  0:26 ` Greg KH [this message]
2005-03-10  0:26   ` [PATCH] debugfs: fix bool built-in type Greg KH

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=1110414382208@kroah.com \
    --to=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox