From: Bart Van Assche Date: Tue, 21 Dec 2010 12:09:47 +0000 (+0100) Subject: docs/sysfs: show() methods should use scnprintf(). X-Git-Tag: v2.6.39-rc1~471^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f70befd9a6ab79413f303109e2c701472e2785;p=pandora-kernel.git 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 Cc: Tejun Heo Cc: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed