]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bcache: fix a spurious gcc complaint, use scnprintf
authorKent Overstreet <koverstreet@google.com>
Wed, 29 May 2013 04:53:19 +0000 (21:53 -0700)
committerKent Overstreet <koverstreet@google.com>
Thu, 27 Jun 2013 00:06:33 +0000 (17:06 -0700)
commitbbc77aa7fb72e616edcb1b165c293e47c6d4d0cf
treed69a958a3bc87f556b75a7330d9699f329d39013
parent5c694129c8db6d89c9be109049a16510b2f70f6d
bcache: fix a spurious gcc complaint, use scnprintf

An old version of gcc was complaining about using a const int as the
size of a stack allocated array. Which should be fine - but using
ARRAY_SIZE() is better, anyways.

Also, refactor the code to use scnprintf().

Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/sysfs.c