]> git.karo-electronics.de Git - linux-beck.git/blobdiff - fs/ext4/page-io.c
fs: use block_device name vsprintf helper
[linux-beck.git] / fs / ext4 / page-io.c
index 17fbe3882b8eb70e3ecc0445a950d25b42423beb..090b3498638e7a7282e2c9f1ff7426bc01153e21 100644 (file)
@@ -52,9 +52,8 @@ void ext4_exit_pageio(void)
  */
 static void buffer_io_error(struct buffer_head *bh)
 {
-       char b[BDEVNAME_SIZE];
-       printk_ratelimited(KERN_ERR "Buffer I/O error on device %s, logical block %llu\n",
-                       bdevname(bh->b_bdev, b),
+       printk_ratelimited(KERN_ERR "Buffer I/O error on device %pg, logical block %llu\n",
+                      bh->b_bdev,
                        (unsigned long long)bh->b_blocknr);
 }