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: Xiongfeng Wang <wangxiongfeng2@huawei.com> Signed-off-by: Song Liu <songliubraving@fb.com>
This commit is contained in:
parent
e4fc5a7429
commit
3f99980c8f
drivers/md
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue