* [BK PATCH] debugfs fixes for 2.6.11
@ 2005-03-10 0:24 Greg KH
2005-03-10 0:26 ` [PATCH] debufs: make built in types add a \n to their output Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2005-03-10 0:24 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel
Hi,
Here are two debugfs fixes. They have been in the -mm releases for a
while.
Please pull from: bk://kernel.bkbits.net/gregkh/linux/2.6.11/debugfs
Individual patches will follow, sent to the linux-kernel list.
thanks,
greg k-h
fs/debugfs/file.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-----
Greg Kroah-Hartman:
o debugfs: fix bool built-in type
o debufs: make built in types add a \n to their output
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] debufs: make built in types add a \n to their output
2005-03-10 0:24 [BK PATCH] debugfs fixes for 2.6.11 Greg KH
@ 2005-03-10 0:26 ` Greg KH
2005-03-10 0:26 ` [PATCH] debugfs: fix bool built-in type Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2005-03-10 0:26 UTC (permalink / raw)
To: linux-kernel; +Cc: gregkh
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,\
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] debugfs: fix bool built-in type.
2005-03-10 0:26 ` [PATCH] debufs: make built in types add a \n to their output Greg KH
@ 2005-03-10 0:26 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2005-03-10 0:26 UTC (permalink / raw)
To: linux-kernel; +Cc: gregkh
ChangeSet 1.2034, 2005/03/09 15:24:27-08:00, gregkh@suse.de
[PATCH] debugfs: fix bool built-in type.
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:02 -08:00
+++ b/fs/debugfs/file.c 2005-03-09 16:23:02 -08:00
@@ -186,7 +186,7 @@
char buf[3];
u32 *val = file->private_data;
- if (val)
+ if (*val)
buf[0] = 'Y';
else
buf[0] = 'N';
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-10 1:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 0:24 [BK PATCH] debugfs fixes for 2.6.11 Greg KH
2005-03-10 0:26 ` [PATCH] debufs: make built in types add a \n to their output Greg KH
2005-03-10 0:26 ` [PATCH] debugfs: fix bool built-in type Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox