mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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: 7d715a6c1a
("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>
This commit is contained in:
parent
b3a9e3b962
commit
3167e3d340
@ -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]);
|
cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]);
|
||||||
else
|
else
|
||||||
cnt += sprintf(buffer + cnt, "%s ", policy_str[i]);
|
cnt += sprintf(buffer + cnt, "%s ", policy_str[i]);
|
||||||
|
cnt += sprintf(buffer + cnt, "\n");
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user