Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp469070pxk; Thu, 3 Sep 2020 04:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx31MR1x+H/+MffatQmbg9JW39DQZH4W9f+Dxglbr/oxM4Dp+ciMSFVP/+EiGyKr6Ph3uTE X-Received: by 2002:a05:6402:3193:: with SMTP id di19mr2517277edb.211.1599133843303; Thu, 03 Sep 2020 04:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599133843; cv=none; d=google.com; s=arc-20160816; b=dtX/DG3bET4aPRCYt6wvlbhE4fKPpvO+1leMnmOY98RMw5cbQSaX0xUNVwZxPnO3nF DtnHRyMFO9P5jclyzqC4/PeP51xAeEC1AXlwpxBPeWjjO4J5DI2X/hm6ajfdxKFB0Wxr zgMGR5LeRpMc6ArKLPMNXeSRTBroPaKvNtnk8Ja1E3TS95vloKI/myutnP89mCEp7Zkc Mo1jRMphOPnpolZH8/PAjSMp/w5o3KWapKbZO9ewmqekbK+HJNH1j4YUTesTTXswS4He eG2SjdyMBxUhCpuQeH9KNhimocM/GsCQF0B6L1xARCsCexTXFuO5nbYL9He8rhFr8yMk aJcg== 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=gf2W44ujgg/CBYJZPi1tN8hNfUQ/bUju6w90NpBvxvg=; b=X28S0kweMA0ybBAyU/mPSpsz0mUQ8XDtdFlLgutfoT26Vh/dLFOM54eHEig2x2E4MP DNOX+E5MSYZ865Y71U/wm6YNmEkJtjhapspBjhjT0gV4VOrgEZTeThiuARU0UpCc2LNr ZogWV96ctZOVbGHhauk3pUKLgbtTC6GH7VwRb5QecCnJLPKqeftOSQP7foJ3nVOi0Efx egQTvSJRrGid+wmAUpS0re+zUjLfIopMmANhHIPJPlWQzeUZtSofeqIBpDj2QDBiGhu6 F/y7fyreBMyiQYy7rJZTQBzrWzhDGbYhK0MNzcfrQc3O5i/a4FUP210D3IHqFDC80KLe TTIg== 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 h22si1685475ejf.574.2020.09.03.04.50.18; Thu, 03 Sep 2020 04:50:43 -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 S1728637AbgICLtT (ORCPT + 99 others); Thu, 3 Sep 2020 07:49:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40212 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728716AbgICLhg (ORCPT ); Thu, 3 Sep 2020 07:37:36 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0AF79D883C5C254F01E4; Thu, 3 Sep 2020 19:37:03 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Sep 2020 19:36:54 +0800 From: Xiongfeng Wang To: CC: , , , Subject: [PATCH] scsi: target: tcmu: add a missing newline when printing parameters Date: Thu, 3 Sep 2020 19:29:33 +0800 Message-ID: <1599132573-33818-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 When I cat module paramter 'global_max_data_area_mb' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@(none):/# cat /sys/module/target_core_user/parameters/global_max_data_area_mb 2048noneroot@(none):/# Signed-off-by: Xiongfeng Wang --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 9b75923..9775670 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -242,7 +242,7 @@ static int tcmu_set_global_max_data_area(const char *str, static int tcmu_get_global_max_data_area(char *buffer, const struct kernel_param *kp) { - return sprintf(buffer, "%d", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks)); + return sprintf(buffer, "%d\n", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks)); } static const struct kernel_param_ops tcmu_global_max_data_area_op = { -- 1.7.12.4