commit | bbc77aa7fb72e616edcb1b165c293e47c6d4d0cf | [log] [tgz] |
---|---|---|
author | Kent Overstreet <koverstreet@google.com> | Tue May 28 21:53:19 2013 -0700 |
committer | Kent Overstreet <koverstreet@google.com> | Wed Jun 26 17:06:33 2013 -0700 |
tree | d69a958a3bc87f556b75a7330d9699f329d39013 | |
parent | 5c694129c8db6d89c9be109049a16510b2f70f6d [diff] |
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>