summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-09-01 16:40:01 +0200
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:13:18 +0200
commit7269ddd2f60286af1f5d1d47d283d2f9a26818c6 (patch)
tree0af057470478592f505aafc58bb87869eca0fc2a /fs/btrfs/ctree.c
parentbtrfs: add kerneldoc for setup_items_for_insert (diff)
downloadlinux-7269ddd2f60286af1f5d1d47d283d2f9a26818c6.tar.xz
linux-7269ddd2f60286af1f5d1d47d283d2f9a26818c6.zip
btrfs: improve error message in setup_items_for_insert
Reword and update formats to match variable types. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> [ update formats ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 4fb2b0673950..a165093739c4 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -4809,7 +4809,8 @@ void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
if (old_data < data_end) {
btrfs_print_leaf(leaf);
- btrfs_crit(fs_info, "slot %d old_data %d data_end %d",
+ btrfs_crit(fs_info,
+ "item at slot %d with data offset %u beyond data end of leaf %u",
slot, old_data, data_end);
BUG();
}