aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/debug.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-11 01:19:49 -0400
committerJens Axboe <axboe@kernel.dk>2018-08-11 17:46:41 -0400
commit6ae63e3501c493616612b90be26b35a6084fc75d (patch)
tree9929883154bbea146c638d12d4921439c2805925 /drivers/md/bcache/debug.c
parent958bf494ecf0a6755309569a9083bf123d6e3754 (diff)
bcache: replace printk() by pr_*() routines
There are still many places in bcache use printk to display kernel message, which are suggested to be preplaced by pr_*() routines like pr_err(), pr_info(), or pr_notice(). This patch replaces all printk() with a proper pr_*() routine for bcache code. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/debug.c')
-rw-r--r--drivers/md/bcache/debug.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index a8f70c916fdb..06da66b2488a 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -74,28 +74,28 @@ void bch_btree_verify(struct btree *b)
74 74
75 console_lock(); 75 console_lock();
76 76
77 printk(KERN_ERR "*** in memory:\n"); 77 pr_err("*** in memory:\n");
78 bch_dump_bset(&b->keys, inmemory, 0); 78 bch_dump_bset(&b->keys, inmemory, 0);
79 79
80 printk(KERN_ERR "*** read back in:\n"); 80 pr_err("*** read back in:\n");
81 bch_dump_bset(&v->keys, sorted, 0); 81 bch_dump_bset(&v->keys, sorted, 0);
82 82
83 for_each_written_bset(b, ondisk, i) { 83 for_each_written_bset(b, ondisk, i) {
84 unsigned int block = ((void *) i - (void *) ondisk) / 84 unsigned int block = ((void *) i - (void *) ondisk) /
85 block_bytes(b->c); 85 block_bytes(b->c);
86 86
87 printk(KERN_ERR "*** on disk block %u:\n", block); 87 pr_err("*** on disk block %u:\n", block);
88 bch_dump_bset(&b->keys, i, block); 88 bch_dump_bset(&b->keys, i, block);
89 } 89 }
90 90
91 printk(KERN_ERR "*** block %zu not written\n", 91 pr_err("*** block %zu not written\n",
92 ((void *) i - (void *) ondisk) / block_bytes(b->c)); 92 ((void *) i - (void *) ondisk) / block_bytes(b->c));
93 93
94 for (j = 0; j < inmemory->keys; j++) 94 for (j = 0; j < inmemory->keys; j++)
95 if (inmemory->d[j] != sorted->d[j]) 95 if (inmemory->d[j] != sorted->d[j])
96 break; 96 break;
97 97
98 printk(KERN_ERR "b->written %u\n", b->written); 98 pr_err("b->written %u\n", b->written);
99 99
100 console_unlock(); 100 console_unlock();
101 panic("verify failed at %u\n", j); 101 panic("verify failed at %u\n", j);