From: Nikolay Borisov Date: Tue, 1 Sep 2020 14:40:01 +0000 (+0300) Subject: btrfs: improve error message in setup_items_for_insert X-Git-Tag: x86_seves_fixes_for_v5.10_rc1~27^2~43 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7269ddd2f60286af1f5d1d47d283d2f9a26818c6;p=users%2Fdwmw2%2Flinux.git btrfs: improve error message in setup_items_for_insert Reword and update formats to match variable types. Reviewed-by: Josef Bacik Reviewed-by: Johannes Thumshirn Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba [ update formats ] Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 4fb2b06739504..a165093739c4c 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(); }