]> git.baikalelectronics.ru Git - kernel.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)
commitf747f06d5a07484dfa4365eca2e6c9297083752e
treed69a958a3bc87f556b75a7330d9699f329d39013
parent2103e2046ad4939613d147fcad3ce11c8aa5557a
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