diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 15:38:22 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:21:48 +0200 |
commit | 60722a31ecf28c6ce3fede15c781fea8f38e4572 (patch) | |
tree | b9e893ab2a84144a148efea4ea63ca152df2e16a /drivers/block/drbd/drbd_req.c | |
parent | 73c3f86521800ee650ec505fc722a9eb61e1b251 (diff) | |
download | kernel_samsung_espresso10-60722a31ecf28c6ce3fede15c781fea8f38e4572.zip kernel_samsung_espresso10-60722a31ecf28c6ce3fede15c781fea8f38e4572.tar.gz kernel_samsung_espresso10-60722a31ecf28c6ce3fede15c781fea8f38e4572.tar.bz2 |
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/block/drbd/drbd_req.c')
0 files changed, 0 insertions, 0 deletions