Browse Source

btrfs: use btrfs_debug instead of pr_debug in transaction abort

Commit e5d6b12fe14 (Btrfs: don't WARN() in btrfs_transaction_abort() for
IO errors) added a pr_debug call to be printed when a transaction is
aborted with -EIO instead of WARN.  btrfs_debug prints which file system
the message is associated with so let's use that instead.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Jeff Mahoney 8 years ago
parent
commit
71367b3fa7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      fs/btrfs/ctree.h

+ 2 - 1
fs/btrfs/ctree.h

@@ -3454,7 +3454,8 @@ do {								\
 			"BTRFS: Transaction aborted (error %d)\n",	\
 			"BTRFS: Transaction aborted (error %d)\n",	\
 			(errno));					\
 			(errno));					\
 		} else {						\
 		} else {						\
-			pr_debug("BTRFS: Transaction aborted (error %d)\n", \
+			btrfs_debug((trans)->fs_info,			\
+				    "Transaction aborted (error %d)", \
 				  (errno));			\
 				  (errno));			\
 		}						\
 		}						\
 	}							\
 	}							\