PCI/sysfs: Add 'devspec' newline
authorKrzysztof Wilczyński <kw@linux.com>
Thu, 3 Jun 2021 00:01:10 +0000 (00:01 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Jun 2021 14:21:07 +0000 (09:21 -0500)
commit14c19b2a40b61b609f68d1d6a5518ebb1c30706f
tree32c177f0bf0f43df3c04821c094be218207e93de
parent381bd3fa8306a56b4bb8703966e6372f1b83762e
PCI/sysfs: Add 'devspec' newline

Previously, when the value of the "devspec" sysfs attribute was read from
the user space there was no newline present, and utilities such as "cat"
wouldn't display the result of the read correctly.

Append a newline character in the show() function to match other "devspec"
attributes.

Link: https://lore.kernel.org/r/20210603000112.703037-5-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/pci/pci-sysfs.c