[PATCH 4/4] btrfs: use btrfs consistent logging wrappers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 fs/btrfs/volumes.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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));
 
-- 
2.23.0




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux