Commit c29047a1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 60ba96e5
......@@ -52,7 +52,7 @@ static ssize_t read_file_##type(struct file *file, char __user *user_buf, \
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,\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment