All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs
@ 2020-05-11  8:23 ` Xiongfeng Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiongfeng Wang @ 2020-05-11  8:23 UTC (permalink / raw)
  To: song; +Cc: linux-raid, linux-kernel, wangxiongfeng2

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs
@ 2020-05-11  8:23 ` Xiongfeng Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiongfeng Wang @ 2020-05-11  8:23 UTC (permalink / raw)
  To: song; +Cc: linux-raid, linux-kernel, wangxiongfeng2

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs
  2020-05-11  8:23 ` Xiongfeng Wang
  (?)
@ 2020-05-13 18:57 ` Song Liu
  -1 siblings, 0 replies; 3+ messages in thread
From: Song Liu @ 2020-05-13 18:57 UTC (permalink / raw)
  To: Xiongfeng Wang; +Cc: linux-raid, open list

On Mon, May 11, 2020 at 1:29 AM Xiongfeng Wang
<wangxiongfeng2@huawei.com> wrote:
>
> Add a missing newline when printing module parameter 'start_ro' by
> sysfs.
>
> Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>

Applied to md-next. Thanks for the patch!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-13 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11  8:23 [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs Xiongfeng Wang
2020-05-11  8:23 ` Xiongfeng Wang
2020-05-13 18:57 ` Song Liu

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.