bcache: Convert pr_<level> uses to a more typical style
Remove the trailing newline from the define of pr_fmt and add newlines
to the uses.
Miscellanea:
o Convert bch_bkey_dump from multiple uses of pr_err to pr_cont
as the earlier conversion was inappropriate done causing multiple
lines to be emitted where only a single output line was desired
o Use vsprintf extension %pV in bch_cache_set_error to avoid multiple
line output where only a single line output was desired
o Coalesce formats
Fixes: 6ae63e3501
("bcache: replace printk() by pr_*() routines")
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Copyright 2012 Google, Inc.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "bcache: %s() " fmt "\n", __func__
|
||||
#define pr_fmt(fmt) "bcache: %s() " fmt, __func__
|
||||
|
||||
#include "util.h"
|
||||
#include "bset.h"
|
||||
@@ -31,7 +31,7 @@ void bch_dump_bset(struct btree_keys *b, struct bset *i, unsigned int set)
|
||||
if (b->ops->key_dump)
|
||||
b->ops->key_dump(b, k);
|
||||
else
|
||||
pr_err("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k));
|
||||
pr_cont("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k));
|
||||
|
||||
if (next < bset_bkey_last(i) &&
|
||||
bkey_cmp(k, b->ops->is_extents ?
|
||||
@@ -1225,7 +1225,7 @@ static void btree_mergesort(struct btree_keys *b, struct bset *out,
|
||||
|
||||
out->keys = last ? (uint64_t *) bkey_next(last) - out->d : 0;
|
||||
|
||||
pr_debug("sorted %i keys", out->keys);
|
||||
pr_debug("sorted %i keys\n", out->keys);
|
||||
}
|
||||
|
||||
static void __btree_sort(struct btree_keys *b, struct btree_iter *iter,
|
||||
|
Reference in New Issue
Block a user