diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-08 02:38:22 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 03:36:02 +0400 |
commit | 56b4e8cb85827a2ccc4752a2a7148e56b62b7e96 (patch) | |
tree | 48a9d05f13fd1c1dedf768879ebb4c05c7cf2fed /drivers/pcmcia/xxs1500_ss.c | |
parent | 60a726e33375a1096e85399cfa1327081b4c38be (diff) | |
download | linux-56b4e8cb85827a2ccc4752a2a7148e56b62b7e96.tar.xz |
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>
Diffstat (limited to 'drivers/pcmcia/xxs1500_ss.c')
0 files changed, 0 insertions, 0 deletions