Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1654117ybk; Mon, 11 May 2020 00:47:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLk8x9ncF84ik/UNA0PejzdUdzFgxBWxPBBopvScUX828qnDQo5OUBIBv2yCI81wcVjj/md X-Received: by 2002:a17:906:b28a:: with SMTP id q10mr12592097ejz.273.1589183256917; Mon, 11 May 2020 00:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589183256; cv=none; d=google.com; s=arc-20160816; b=iRMyZjDSSWRp/X64YrjKkBUAmofGpKcLGTky+3DyQNdjXZ7iT3uRMA0ac58A9VdfKj Ro4PnoginWlnPfaeCVVRKnpSaP85WxHPhq/anMuXluKSxgTmx3rKYzHZPVMeaDTtHHdS EoojO3TbS6ngeLAxIQWDnyv0dQytO2WKhTdFaxsuc3NRI3ketbH2XaxZd/aZ9VBhJuZW r4iNgZ7nU4eWWuTA44HLiKm3HvYLTlpXPyUseM/pJNpyFZztJZuxhkpoSuFj/EaJvwbR W6a9zEsfQOU9l0qrKS1uK+fl8v2quKMK2JvCH5ubY03GpcRFYB9A/ATdtqgj4XQU5FwW V5Pg== 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=MbjRev1ketuLWvvQvoiZKvALmt9nHLT78QwJk98fHgo=; b=ygaRtV+kIam3TrBipuc5jMyMyahNsxjQG1fX+LckPB6hnah6UnZ8v/EygiOLKiMXco +thl1643U6JwAzhx89DbCs1PPdAR3WJekmILdrFtMm4fITvyiXouWbHWUeeMqEqe0WUo Q3MI0BKFiPG4+pWI8rKyAKnpAW7tBBYm/BxwDZuvPm1en7gRHYzJHQMYSUvQS/bi8ieQ NDuUC5CNvnXS8B8gjafEBhcuOwnRqz91d93aqlEauv9ZK22XpJuHiBKTsiig0khlJULY fDxEpoRk7zjum7D2easV83S1D5DC9CsULGJP3WFY6t/8tXgL+R9iDhtkql8ZHMB1U4yU 7aWw== 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 w16si5506235edq.89.2020.05.11.00.47.13; Mon, 11 May 2020 00:47:36 -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 S1728353AbgEKHnZ (ORCPT + 99 others); Mon, 11 May 2020 03:43:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4325 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725790AbgEKHnZ (ORCPT ); Mon, 11 May 2020 03:43:25 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7F48F77A0B0A7225CAC2; Mon, 11 May 2020 15:43:18 +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; Mon, 11 May 2020 15:43:11 +0800 From: Xiongfeng Wang To: , , CC: , , , Subject: [PATCH] RDMA/srpt: Add a newline when printing parameter 'srpt_service_guid' by sysfs Date: Mon, 11 May 2020 15:37:09 +0800 Message-ID: <1589182629-27743-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 parameter 'srpt_service_guid', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/ib_srpt/parameters/srpt_service_guid 0x0205cdfffe8346b9[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 9855274..79b6341 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -81,7 +81,7 @@ static int srpt_get_u64_x(char *buffer, const struct kernel_param *kp) { - return sprintf(buffer, "0x%016llx", *(u64 *)kp->arg); + return sprintf(buffer, "0x%016llx\n", *(u64 *)kp->arg); } module_param_call(srpt_service_guid, NULL, srpt_get_u64_x, &srpt_service_guid, 0444); -- 1.7.12.4