Skip to content

Commit 35903b8

Browse files
fenghusthugregkh
authored andcommitted
PCI/ASPM: Add missing newline in sysfs 'policy'
[ Upstream commit 3167e3d ] When I cat ASPM parameter 'policy' by sysfs, it displays as follows. Add a newline for easy reading. Other sysfs attributes already include a newline. [root@localhost ~]# cat /sys/module/pcie_aspm/parameters/policy [default] performance powersave powersupersave [root@localhost ~]# Fixes: 7d715a6 ("PCI: add PCI Express ASPM support") Link: https://lore.kernel.org/r/1594972765-10404-1-git-send-email-wangxiongfeng2@huawei.com Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8b26055 commit 35903b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pci/pcie/aspm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp)
11641164
cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]);
11651165
else
11661166
cnt += sprintf(buffer + cnt, "%s ", policy_str[i]);
1167+
cnt += sprintf(buffer + cnt, "\n");
11671168
return cnt;
11681169
}
11691170

0 commit comments

Comments
 (0)