summaryrefslogtreecommitdiff
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2020-05-11 16:23:25 +0800
committerSong Liu <songliubraving@fb.com>2020-05-13 11:49:19 -0700
commit3f99980c8f70bc56584450c0a69973eef7b65913 (patch)
tree3704ec206491ad6f51aa0467b8e44499df71acce /drivers/md/md.c
parente4fc5a74293fbe8a1b8598b8a3c53592a5d70398 (diff)
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>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 79e36cb4e8b0..f567f536b529 100644
--- 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)
{