diff options
author | 2020-09-01 17:40:01 +0300 | |
---|---|---|
committer | 2020-10-07 12:13:18 +0200 | |
commit | 7269ddd2f60286af1f5d1d47d283d2f9a26818c6 (patch) | |
tree | 0af057470478592f505aafc58bb87869eca0fc2a /fs/btrfs | |
parent | btrfs: add kerneldoc for setup_items_for_insert (diff) | |
download | linux-7269ddd2f60286af1f5d1d47d283d2f9a26818c6.tar.gz linux-7269ddd2f60286af1f5d1d47d283d2f9a26818c6.tar.bz2 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 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ctree.c | 3 |
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(); } |