summaryrefslogtreecommitdiff
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2020-05-11 11:23:25 +0300
committerSong Liu <songliubraving@fb.com>2020-05-13 21:49:19 +0300
commit3f99980c8f70bc56584450c0a69973eef7b65913 (patch)
tree3704ec206491ad6f51aa0467b8e44499df71acce /drivers/md/md.c
parente4fc5a74293fbe8a1b8598b8a3c53592a5d70398 (diff)
downloadlinux-3f99980c8f70bc56584450c0a69973eef7b65913.tar.xz
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)
{