[4/4] btrfs: use btrfs consistent logging wrappers
diff mbox series

Message ID 20200114060920.4527-4-anand.jain@oracle.com
State New
Headers show
Series
  • [1/4] btrfs: add NO_FS_INFO to btrfs_printk
Related show

Commit Message

Anand Jain Jan. 14, 2020, 6:09 a.m. UTC
Now as we could use the btrfs_info(), btrfs_warn() etc.. in the context
where fs_info is not yet initialized, so replace pr_info with btrfs_info
in device_list_add() for a consistent log format from btrfs.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 fs/btrfs/volumes.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch
diff mbox series

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index bafc57bc02c8..e30747949074 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -824,13 +824,13 @@  static noinline struct btrfs_device *device_list_add(const char *path,
 		*new_device_added = true;
 
 		if (disk_super->label[0])
-			pr_info(
-	"BTRFS: device label %s devid %llu transid %llu %s scanned by %s (%d)\n",
+			btrfs_info(NO_FS_INFO,
+	"device label %s devid %llu transid %llu %s scanned by %s (%d)",
 				disk_super->label, devid, found_transid, path,
 				current->comm, task_pid_nr(current));
 		else
-			pr_info(
-	"BTRFS: device fsid %pU devid %llu transid %llu %s scanned by %s (%d)\n",
+			btrfs_info(NO_FS_INFO,
+	"device fsid %pU devid %llu transid %llu %s scanned by %s (%d)",
 				disk_super->fsid, devid, found_transid, path,
 				current->comm, task_pid_nr(current));