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:
Родитель
e4fc5a7429
Коммит
3f99980c8f
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче