aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2010-12-21 13:09:47 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-03 15:10:18 -0800
commitd3f70befd9a6ab79413f303109e2c701472e2785 (patch)
tree1a271b9744ac3b42355026e2cef7d9f97f9e8537 /include/linux/kobject.h
parentdocs/sysfs: Update directory/kobject documentation. (diff)
downloadlinux-dev-d3f70befd9a6ab79413f303109e2c701472e2785.tar.xz
linux-dev-d3f70befd9a6ab79413f303109e2c701472e2785.zip
docs/sysfs: show() methods should use scnprintf().
Since snprintf() may return a value that exceeds its second argument, show() methods should use scnprintf() instead of snprintf(). This patch updates the example in the sysfs documentation accordingly. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Cc: Tejun Heo <tj@kernel.org> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kobject.h')
0 files changed, 0 insertions, 0 deletions