Commit 3f99980c authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by Song Liu

md: add a newline when printing parameter 'start_ro' by sysfs

Add a missing newline when printing module parameter 'start_ro' by
sysfs.
Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
parent e4fc5a74
...@@ -9810,7 +9810,7 @@ module_exit(md_exit) ...@@ -9810,7 +9810,7 @@ module_exit(md_exit)
static int get_ro(char *buffer, const struct kernel_param *kp) 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) static int set_ro(const char *val, const struct kernel_param *kp)
{ {
......
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