From: Xiongfeng Wang <wangxiongfeng2@huawei.com> To: song@kernel.org Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, wangxiongfeng2@huawei.com Subject: [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs Date: Mon, 11 May 2020 16:23:25 +0800 [thread overview] Message-ID: <1589185405-39519-1-git-send-email-wangxiongfeng2@huawei.com> (raw) Add a missing newline when printing module parameter 'start_ro' by sysfs. Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 271e8a5..acffcc0 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9785,7 +9785,7 @@ static __exit void md_exit(void) 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) { -- 1.7.12.4
WARNING: multiple messages have this Message-ID (diff)
From: Xiongfeng Wang <wangxiongfeng2@huawei.com> To: <song@kernel.org> Cc: <linux-raid@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <wangxiongfeng2@huawei.com> Subject: [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs Date: Mon, 11 May 2020 16:23:25 +0800 [thread overview] Message-ID: <1589185405-39519-1-git-send-email-wangxiongfeng2@huawei.com> (raw) Add a missing newline when printing module parameter 'start_ro' by sysfs. Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 271e8a5..acffcc0 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9785,7 +9785,7 @@ static __exit void md_exit(void) 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) { -- 1.7.12.4
next reply other threads:[~2020-05-11 8:23 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-11 8:23 Xiongfeng Wang [this message] 2020-05-11 8:23 ` [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs Xiongfeng Wang 2020-05-13 18:57 ` Song Liu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1589185405-39519-1-git-send-email-wangxiongfeng2@huawei.com \ --to=wangxiongfeng2@huawei.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-raid@vger.kernel.org \ --cc=song@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.