Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2298314ybh; Fri, 17 Jul 2020 14:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBkP5Cv9vOePK7iv7RhOLXnQ2oS/e+QfNlnTjx9ZLaRRpviLuDhF8bvBfimaVh82EQTAaL X-Received: by 2002:a17:906:7709:: with SMTP id q9mr10284017ejm.123.1595021963344; Fri, 17 Jul 2020 14:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595021963; cv=none; d=google.com; s=arc-20160816; b=WDAUDztifUouHSlLJOYLIMc0oI3L/mgL93zIu9GR5KGoAWcx1CjH2I42gmZ2tPKJvL l/3xO0u4CTcGpNanuiHkfBmIXDObh17X1ZleL2WnnVJHOICto/xR7rAoZBNkreuj1uix d2QauXNH8otVf80NyWq2Lp0TGaJnjbwe+zHTUBc6/uJYnYatFqACmiuJXL9SxwwfWzd5 plen3en8uE86BwAriBCwRyCKivL6kuBjHJQWBqFhLdSG+jJOgz+CTTUvcoks2wUM80iO UVss2le3PZTd60ULUmAuMo0GR8WV4hn45iTGedlgmspxHuvEx1B4TZb7n1hgJ0ji07zu tzyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=lYQmLAtz/jioQHPdXfuR7arBs/U3MGzwoqooH2+NhsQ=; b=byw5r1o/0EOXjr6XPR/0AmM5diS6Hbeb7F/gBptNVizXpCBTTKOk9mmk7P+mr37w/a lFeP7eNieUkGK0ZJ8iZTf5DDoJsmHcvT6oSHoi3Z+CaTCh6FVlOhPM1rFVHWWwsuiPa4 cbCGD487vPye1jcIM5FArGRQ1yb1BDyN0U7qlX17c+LbJQG+7qK8iiJtLLmCHWMgxypV Y0vYns9MHpTnFasiKFMzE8fdN4+mzKWb6isd5k9P2tWw/54RtjBttn9B+L5B6ca9lt7e K70l/9W6Oq9gAWtlqhImHcBv5iqy6k1xD1cGBw9TAVlZgqr4DP91wRbI1fmU2cQN6FKu eu4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xOYY+B2B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si6027291edx.489.2020.07.17.14.39.00; Fri, 17 Jul 2020 14:39:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xOYY+B2B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgGQVgM (ORCPT + 99 others); Fri, 17 Jul 2020 17:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:36906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgGQVgL (ORCPT ); Fri, 17 Jul 2020 17:36:11 -0400 Received: from localhost (mobile-166-175-191-139.mycingular.net [166.175.191.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D0E72064B; Fri, 17 Jul 2020 21:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595021771; bh=9/FdhTq39PmyIKiHwQV4Tapn4Byu26rw3gOTHxdJiXU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=xOYY+B2BspFSPIRldzafzYIVDpdDBgoVLAfiLd97RZh+ss+QnQ2u4f8j13ryBT/kg IAl2krY3716AedBcw+5BlOR0grWmuo7aAdOV9WUvEKZmnpr1eaWwx1+2Xk378Y3JIr z1SF1IeANi4JledkyK+u+ttVb1v+XwMl+O/6yXuA= Date: Fri, 17 Jul 2020 16:36:09 -0500 From: Bjorn Helgaas To: Xiongfeng Wang Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, guohanjun@huawei.com Subject: Re: [PATCH] PCI/ASPM: add missing newline when printing parameter 'policy' by sysfs Message-ID: <20200717213609.GA774873@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1594972765-10404-1-git-send-email-wangxiongfeng2@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 03:59:25PM +0800, Xiongfeng Wang wrote: > When I cat ASPM parameter 'policy' by sysfs, it displays as follows. > It's better to add a newline for easy reading. > > [root@localhost ~]# cat /sys/module/pcie_aspm/parameters/policy > [default] performance powersave powersupersave [root@localhost ~]# > > Signed-off-by: Xiongfeng Wang Applied to pci/aspm for v5.9, thanks! > --- > drivers/pci/pcie/aspm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c > index b17e5ff..253c30c 100644 > --- a/drivers/pci/pcie/aspm.c > +++ b/drivers/pci/pcie/aspm.c > @@ -1182,6 +1182,7 @@ static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp) > cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]); > else > cnt += sprintf(buffer + cnt, "%s ", policy_str[i]); > + cnt += sprintf(buffer + cnt, "\n"); > return cnt; > } > > -- > 1.7.12.4 >