From: Sergey Senozhatsky Date: Mon, 7 Apr 2014 22:38:22 +0000 (-0700) Subject: zram: use scnprintf() in attrs show() methods X-Git-Tag: v3.15-rc1~57^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b4e8cb85827a2ccc4752a2a7148e56b62b7e96;p=pandora-kernel.git zram: use scnprintf() in attrs show() methods sysfs.txt documentation lists the following requirements: - The buffer will always be PAGE_SIZE bytes in length. On i386, this is 4096. - show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). - show() should always use scnprintf(). Use scnprintf() in show() functions. Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim Cc: Jerome Marchand Cc: Nitin Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed