Skip to content

Commit 3167e3d

Browse files
fenghusthubjorn-helgaas
authored andcommitted
PCI/ASPM: Add missing newline in sysfs 'policy'
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]>
1 parent b3a9e3b commit 3167e3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/pcie/aspm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp)
11821182
cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]);
11831183
else
11841184
cnt += sprintf(buffer + cnt, "%s ", policy_str[i]);
1185+
cnt += sprintf(buffer + cnt, "\n");
11851186
return cnt;
11861187
}
11871188

0 commit comments

Comments
 (0)