Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1798077ybh; Fri, 17 Jul 2020 01:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCZ231swPUzKtmxnGPGryEVRIcxzN5MlEQdCJ5UGQM4szzgxsIHwI6TO96/h5WgBVIDlq3 X-Received: by 2002:aa7:c341:: with SMTP id j1mr8466388edr.197.1594973251337; Fri, 17 Jul 2020 01:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594973251; cv=none; d=google.com; s=arc-20160816; b=BE7Kezji80zpwJj7C8wfu3BbyxzwuS0cqjukDDzC6I0W6UmrJuIfV5Ht1KKvmcM9vE 811ksKlxF2jhMP717/SGeDmMzV9unxKQbS3q7myIhvJWswH4/RjT5y08QCBTPNumFEyL UziW5zeI1qygVTBbiHd7wkxs6nkeCHwIozorWB+CGWqoqxtixpBZsM+/RVjx2lmptV+y W0Sxl9ACYXhVHQFVx1nteL5YmFh0jOhlmBiKGPlolTAaEhWDPYsa8d01oPcVyPMuEI+t 5qtahWqiEgG0WYfqZbZtEEkzzSWnDWvDn+x6ycA2RGnF3mmBGwJFfRdfv19+4+1KowOO ge8w== 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=pNe1UVRyOnJCb1LBG4sL36avUlLwxbg6vMoDd9rlEXs=; b=ZZSKxBvaL4HQWWTJPNSmRsAVXBVyHcibe5GlqJy4ch5RqeVVZlivGgtUS8rY6xI2YD VBlV0okXSqNkbAuh/ejCIJV2Xk1G1iKWRLDnrdMFt82Ppe+9amUBR79LHkdS1sFS6oid qrpulBzdOQNUyhVuIxJbqUqbsmSgKBRtBY3ucTf0WCp+FqYTwFX9TcrJrvTh4LIVYkKN U2wj7i2OjLu/jTc7xBQblhGs54BPO3d2h7bVlQiBeGKEUtA/aBbtE97l+Qtps+bzh4lG Ls1leoqEVVFNj3ZRz0flzkrMVAIJtLYzrCGyr2CNMFATRndQrKlhyC45GvvGMaauCE4l CAWQ== 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 rn17si3108426ejb.46.2020.07.17.01.07.07; Fri, 17 Jul 2020 01:07:31 -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 S1728336AbgGQIGH (ORCPT + 99 others); Fri, 17 Jul 2020 04:06:07 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8312 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726198AbgGQIGH (ORCPT ); Fri, 17 Jul 2020 04:06:07 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DD773C5387197067B19F; Fri, 17 Jul 2020 16:06:04 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Jul 2020 16:05:56 +0800 From: Xiongfeng Wang To: CC: , , , Subject: [PATCH] PCI/ASPM: add missing newline when printing parameter 'policy' by sysfs Date: Fri, 17 Jul 2020 15:59:25 +0800 Message-ID: <1594972765-10404-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 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 --- 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