lkml.org 
[lkml]   [2005]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] debufs: make built in types add a \n to their output
Date
From
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,\
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:2.226 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site