Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1793186ybh; Fri, 17 Jul 2020 00:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ8DcWO/PKVxGaPeukzzSQosslrd0qHj0sxcz9UARi7Ax35N3kaq/P8uP8taCRpCs1u0jx X-Received: by 2002:a17:906:7f90:: with SMTP id f16mr7311477ejr.507.1594972723523; Fri, 17 Jul 2020 00:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594972723; cv=none; d=google.com; s=arc-20160816; b=MRozHO91szQP/tIUNph1uEZOM8aIlOdrAOV7aMQS7MVg/CtCq4KcExgfjen15Yif4P KfUeDaHcmzfmx+5/LmeJOEoV4fcfYnJ39TLEwc5PZ9uBmV/f2JUXqh3bl8yUtv/DNbZw oMiCY4fw+B/l31gjxl+jkYrExSF+ihTey9g9IOLpXrKf9Nr6wfhpeDB9wea6FLbnINhr MAQPtQN4lGoDVyQsI9ZXB01we++GmoNEpQHES/cZcaHoDHm1cNfxQwEcl8yTQHhC3MhB Bqro682Z0hnYp6AGOH5yO9iPcIMxwWyfNH4jGFak2yBuUfpsdF+quezhQUf3P25FF3vl 1x9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=S/GvrcQC8o/ouwQ4Yq8i5J8JX5gnmeWcuEVZN4Wggf8=; b=wT/FzfaYwJsKk+Xmj5hSNHabt4MuoD+Vl+Et8F6VnQCeFu/VELyPdD0yg8RCs+3ZLf ipYuX0zIoPsjjQ1fiVisP+Y/7Ry7dPGocKEYZksx0KuAbBxyjVJ3kzmdB5mzxNxicPqa 4Sqy9cEpM7mGbZ0aH7plESPfb7TGELjF3k8+ME/7qKUyAmANStUI14ICcMXWHcjaRz0I /DBgWr15njeDyKbiHNL/Cr4s4w4ogYVCDjiDqPAhiGEf/2GtvhsfJyVOljxNmh1G4NDn iKldjdlyteMRmfvwh1cb4J5zi9aLv+H8zaRS6I+cFFE3MWt+FjKHZvBY5o9DiWe46Y7n wZpg== 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 k14si5164618ejs.400.2020.07.17.00.58.20; Fri, 17 Jul 2020 00:58: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 S1727042AbgGQH4L (ORCPT + 99 others); Fri, 17 Jul 2020 03:56:11 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2494 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726105AbgGQH4L (ORCPT ); Fri, 17 Jul 2020 03:56:11 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 5B32DF424CF03846E4F6; Fri, 17 Jul 2020 08:56:09 +0100 (IST) Received: from [127.0.0.1] (10.210.167.164) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 17 Jul 2020 08:56:08 +0100 Subject: Re: [PATCH] [SCSI] libsas: add missing newline when printing 'enable' by sysfs To: Xiongfeng Wang , , CC: , , References: <1594971374-40210-1-git-send-email-wangxiongfeng2@huawei.com> From: John Garry Message-ID: <648c18d0-cc0a-f444-e774-e0938f697e90@huawei.com> Date: Fri, 17 Jul 2020 08:54:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <1594971374-40210-1-git-send-email-wangxiongfeng2@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.210.167.164] X-ClientProxiedBy: lhreml741-chm.china.huawei.com (10.201.108.191) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/07/2020 08:36, Xiongfeng Wang wrote: Hi, I think "scsi: scsi_transport_sas: " would be a better subject prefix, as this is not libsas code. > When I cat sysfs file 'enable' below 'sas_phy', it displays as follows. > It's better to add a newline for easy reading. > > [root@localhost ~]# cat /sys/devices/pci0000:00/0000:00:0d.0/0000:0f:00.0/host3/phy-3:2/sas_phy/phy-3:2/enable > 1[root@localhost ~]# > > Signed-off-by: Xiongfeng Wang Apart from above, Reviewed-by: John Garry > --- > drivers/scsi/scsi_transport_sas.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c > index 182fd25..e443dee 100644 > --- a/drivers/scsi/scsi_transport_sas.c > +++ b/drivers/scsi/scsi_transport_sas.c > @@ -563,7 +563,7 @@ static ssize_t do_sas_phy_enable(struct device *dev, > { > struct sas_phy *phy = transport_class_to_phy(dev); > > - return snprintf(buf, 20, "%d", phy->enabled); > + return snprintf(buf, 20, "%d\n", phy->enabled); > } > > static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, show_sas_phy_enable, >