mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
f8cf6e513e
The sysfs_emit() and sysfs_emit_at() functions were introduced to make
it less ambiguous which function is preferred when writing to the output
buffer in a device attribute's "show" callback [1].
Convert the PCI sysfs object "show" functions from sprintf(), snprintf()
and scnprintf() to sysfs_emit() and sysfs_emit_at() accordingly, as the
latter is aware of the PAGE_SIZE buffer and correctly returns the number
of bytes written into the buffer.
No functional change intended.
[1] Documentation/filesystems/sysfs.rst
Related commit:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
switchtec.c |