[PATCH 08/28] block_dev: Use current logging style

From: Joe Perches
Date: Tue Nov 29 2011 - 21:16:05 EST


Add and use pr_fmt and pr_<level>
Coalesce formats.

No change in output as pr_fmt is #define pr_fmt(fmt) fmt

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
fs/block_dev.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/fs/block_dev.c b/fs/block_dev.c
index 3154fbe..20aa631 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -5,6 +5,8 @@
* Copyright (C) 2001 Andrea Arcangeli <andrea@xxxxxxx> SuSE
*/

+#define pr_fmt(fmt) fmt
+
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/fcntl.h>
@@ -965,8 +967,8 @@ static void flush_disk(struct block_device *bdev, bool kill_dirty)

if (bdev->bd_disk)
disk_name(bdev->bd_disk, 0, name);
- printk(KERN_WARNING "VFS: busy inodes on changed media or "
- "resized disk %s\n", name);
+ pr_warn("VFS: busy inodes on changed media or resized disk %s\n",
+ name);
}

if (!bdev->bd_disk)
@@ -993,9 +995,8 @@ void check_disk_size_change(struct gendisk *disk, struct block_device *bdev)
char name[BDEVNAME_SIZE];

disk_name(disk, 0, name);
- printk(KERN_INFO
- "%s: detected capacity change from %lld to %lld\n",
- name, bdev_size, disk_size);
+ pr_info("%s: detected capacity change from %lld to %lld\n",
+ name, bdev_size, disk_size);
i_size_write(bdev->bd_inode, disk_size);
flush_disk(bdev, false);
}
--
1.7.6.405.gc1be0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/