summaryrefslogtreecommitdiff
path: root/lib/test_bpf.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>2015-06-26 01:00:29 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 03:00:36 +0300
commit4bbacd51a683e45c13f7d6df6f85cb7391590311 (patch)
tree6226f69a81061f779f19f7af1c1e604c77d76ab5 /lib/test_bpf.c
parent17162f41f04a3ba5a6b887a8e8e7f78159fa4a70 (diff)
downloadlinux-4bbacd51a683e45c13f7d6df6f85cb7391590311.tar.xz
zram: cut trailing newline in algorithm name
Supplied sysfs values sometimes contain new-line symbols (echo vs. echo -n), which we also copy as a compression algorithm name. it works fine when we lookup for compression algorithm, because we use sysfs_streq() which takes care of new line symbols. however, it doesn't look nice when we print compression algorithm name if zcomp_create() failed: zram: Cannot initialise LXZ compressing backend cut trailing new-line, so the error string will look like zram: Cannot initialise LXZ compressing backend we also now can replace sysfs_streq() in zcomp_available_show() with strcmp(). Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Minchan Kim <minchan@kernel.org> 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 'lib/test_bpf.c')
0 files changed, 0 insertions, 0 deletions