diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-20 22:38:10 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-20 08:40:54 -0600 |
commit | 0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22 (patch) | |
tree | 1ccdcb9aa3c0f26a6e74aa22ada14225132b7392 /drivers/md/bcache/debug.c | |
parent | 7e84c2150731faec088ebfe33459f61d118b2497 (diff) | |
download | linux-stable-0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22.tar.gz linux-stable-0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22.tar.bz2 linux-stable-0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22.zip |
bcache: remove the backing_dev_name field from struct cached_dev
Just use the %pg format specifier to print the name directly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211020143812.6403-7-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/debug.c')
-rw-r--r-- | drivers/md/bcache/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index 116edda845c3..e803cad864be 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c @@ -137,8 +137,8 @@ void bch_data_verify(struct cached_dev *dc, struct bio *bio) p2 + bv.bv_offset, bv.bv_len), dc->disk.c, - "verify failed at dev %s sector %llu", - dc->backing_dev_name, + "verify failed at dev %pg sector %llu", + dc->bdev, (uint64_t) bio->bi_iter.bi_sector); kunmap_atomic(p1); |