bcache: Add __printf annotation to __bch_check_keys()
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 19 Mar 2018 00:36:27 +0000 (17:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2018 02:15:20 +0000 (20:15 -0600)
commit4a4e443835a43a79113cc237c472c0d268eb1e1c
treef25c107a61eed11222f60863ba3b3fec1fdc56b4
parentfd01991d5c20098c5c1ffc4dca6c821cc60a2f74
bcache: Add __printf annotation to __bch_check_keys()

Make it possible for the compiler to verify the consistency of the
format string passed to __bch_check_keys() and the arguments that
should be formatted according to that format string.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bset.h