Skip to content

Commit 1aee259

Browse files
fenghusthuLee Jones
authored and
Lee Jones
committed
PCI/ASPM: Add missing newline in sysfs 'policy'
[ Upstream commit 3167e3d340c092fd47924bc4d23117a3074ef9a9 ] 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/[email protected] Signed-off-by: Xiongfeng Wang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Lee Jones <[email protected]> Change-Id: I48650d04b3341d049133ec1da0ea4a8e083cedd1
1 parent 0cc4eb9 commit 1aee259

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/pcie/aspm.c

+1
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ static int pcie_aspm_get_policy(char *buffer, struct kernel_param *kp)
832832
cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]);
833833
else
834834
cnt += sprintf(buffer + cnt, "%s ", policy_str[i]);
835+
cnt += sprintf(buffer + cnt, "\n");
835836
return cnt;
836837
}
837838

0 commit comments

Comments
 (0)