diff options
author | Xiongfeng Wang <wangxiongfeng2@huawei.com> | 2020-05-11 10:23:25 +0200 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-05-13 20:49:19 +0200 |
commit | 3f99980c8f70bc56584450c0a69973eef7b65913 (patch) | |
tree | 3704ec206491ad6f51aa0467b8e44499df71acce /drivers/md/md.c | |
parent | md: stop using ->queuedata (diff) | |
download | linux-3f99980c8f70bc56584450c0a69973eef7b65913.tar.xz linux-3f99980c8f70bc56584450c0a69973eef7b65913.zip |
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.c | 2 |
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) { |