summaryrefslogtreecommitdiff
path: root/drivers/base/cpu.c
diff options
context:
space:
mode:
authorSeymour, Shane M <shane.seymour@hp.com>2015-06-25 02:33:08 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 22:13:21 (GMT)
commit223e8f01b072152cc4336e7dcb1cf8c21ab34432 (patch)
treea134721836ea2d02c85d31383fd751e4fb78e9e5 /drivers/base/cpu.c
parent64526370d11ce8868ca495723d595b61e8697fbf (diff)
downloadlinux-223e8f01b072152cc4336e7dcb1cf8c21ab34432.tar.xz
sysfs.txt: update show method notes about sprintf/snprintf/scnprintf usage
Changed the documentation to allow sprintf() when the buffer provided by sysfs cannot be overflowed. Explicitly say snprintf() must never be used in a show function to format data to be returned to user space. Change based on a discussion about the patch st: convert DRIVER_ATTR macros to DRIVER_ATTR_RO Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Shane Seymour <shane.seymour@hp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/cpu.c')
0 files changed, 0 insertions, 0 deletions