]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57c4066b7b3d011ad67b6d613ed71060abe25405
tree32c177f0bf0f43df3c04821c094be218207e93de
parentb27811111700976055eb9bf9b158b9848ebbdcd9
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