Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1678958ybk; Mon, 11 May 2020 01:31:34 -0700 (PDT) X-Google-Smtp-Source: APiQypIy4yp6kgF1PsqCFplpCiaVpE+xRTKb0b1h4k1UM8vYA58kLjAmRZfYj+FmSe5suRaXRwXN X-Received: by 2002:aa7:c402:: with SMTP id j2mr10664554edq.284.1589185893949; Mon, 11 May 2020 01:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589185893; cv=none; d=google.com; s=arc-20160816; b=S6FH0WoNUFnBOz3Tw7zBj6+KoumTcjswL6e2RxiC5yWH8OpIcRGIf3ZCw4bXq7SqWC bZ3NdEWl6kIp7jo0ycWM0Ty9UATOO3fzAvDjaOvc/xJ+8SvVNB5b48LuexSX5+SndSP4 2rt6DnMj0Wlhyoo2VVnWIxDtU94smLlgckah4CWUYAG9+dsN5Owla11yNJxDfI2gPjv7 kgzW9UKa1IxnHrdxJr6HV9Aw82SZ/MlMbmfsaEhEi/qrqifE/BY+hub/4j4E+0uiao4l m5dJgZBEMTfmQm/TIzFaM8T+Zc6CMKWbw//ankcErtWHj1SKfNJrJ7v30zs1KMYNgrTa kg7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=nqNdnIFx8+r/RPnUGyquo+dniA/opS5RmtOTjYdOG0s=; b=YZYvEWrHdvX9M0ZZiTBVDDd8b4zAkm20zTCQdZuvHAxZMZPjekKk33fFuO0CI33TQH L5AYwm+F47UISce/iP3RwMVyKgedNGGScwTTVNsqUtyhFAFsXrNrsvCxqB84VqBmyuiY BdfZkUiLCZbzYhBTl8SjEaiTyUOXJMLNFmHjcICZn1zrW9xAlVtdhfxwdqBb3Gyt/jKy kFDYvyN6aPi78+7AxMnPlx2YZo173INJu1goROBNXPZ7sRlt6zbIXYKVedIxYOB+xJ2K xjSbBwr12AB/4h5TMj0q35l4htqe/DoOIZx9vw/HwVo3rMhbagPAtMMzlJh4LWWfk8c2 pD3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si173896edm.289.2020.05.11.01.31.11; Mon, 11 May 2020 01:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728777AbgEKI3f (ORCPT + 99 others); Mon, 11 May 2020 04:29:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4327 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728341AbgEKI3e (ORCPT ); Mon, 11 May 2020 04:29:34 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6C974235951EAA2CC910; Mon, 11 May 2020 16:29:32 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 16:29:25 +0800 From: Xiongfeng Wang To: CC: , , Subject: [PATCH] md: add a newline when printing parameter 'start_ro' by sysfs Date: Mon, 11 May 2020 16:23:25 +0800 Message-ID: <1589185405-39519-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a missing newline when printing module parameter 'start_ro' by sysfs. Signed-off-by: Xiongfeng Wang --- 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