From: Seymour, Shane M Date: Thu, 25 Jun 2015 02:33:08 +0000 (+0000) Subject: sysfs.txt: update show method notes about sprintf/snprintf/scnprintf usage X-Git-Tag: omap-for-v4.3/fixes-merge-window~45^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223e8f01b072152cc4336e7dcb1cf8c21ab34432;p=pandora-kernel.git 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 Signed-off-by: Shane Seymour Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed