projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fc5a7
)
md: add a newline when printing parameter 'start_ro' by sysfs
author
Xiongfeng Wang
<wangxiongfeng2@huawei.com>
Mon, 11 May 2020 08:23:25 +0000
(16:23 +0800)
committer
Song Liu
<songliubraving@fb.com>
Wed, 13 May 2020 18:49:19 +0000
(11:49 -0700)
Add a missing newline when printing module parameter 'start_ro' by
sysfs.
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 79e36cb4e8b079052be00537ff4810f8df28c736..f567f536b529bd6fa7cf7ff74d5cad1aa589c1eb 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-9810,7
+9810,7
@@
module_exit(md_exit)
static int get_ro(char *buffer, const struct kernel_param *kp)
{
- return sprintf(buffer, "%d", start_readonly);
+ return sprintf(buffer, "%d
\n
", start_readonly);
}
static int set_ro(const char *val, const struct kernel_param *kp)
{