Sergey Senozhatsky 56b4e8cb85 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 <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:36:02 -07:00
..
2014-03-04 07:55:47 -08:00
2014-03-13 14:56:38 -06:00
2013-04-09 14:13:19 -04:00
2011-08-08 11:40:15 +02:00
2014-03-13 14:56:38 -06:00
2012-03-28 18:30:03 +01:00
2014-01-30 16:56:55 -08:00
2013-06-29 12:46:45 +04:00
2014-01-30 16:56:55 -08:00
2013-11-23 22:33:49 -08:00
2013-12-16 15:49:40 -05:00
2014-01-03 10:05:34 +01:00
2014-03-29 10:38:14 -07:00
2013-11-08 09:10:30 -07:00
2014-03-13 14:56:38 -06:00
2009-03-26 21:15:27 +01:00