btrfs: use btrfs_debug instead of pr_debug in transaction abort
authorJeff Mahoney <jeffm@suse.com>
Wed, 15 Feb 2017 21:28:34 +0000 (16:28 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:56 +0000 (12:03 +0100)
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>
fs/btrfs/ctree.h

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