Skip to content
Commit bbc77aa7 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <koverstreet@google.com>
parent 5c694129
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment