diff options
author | Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> | 2018-05-30 13:55:19 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:38 +0200 |
commit | b8f9a5e6e24bab68b3152652b4ceb0c950d5594b (patch) | |
tree | 25a7eda509be51c5481662d5c45397950ee8830f /print-tree.c | |
parent | 6c817a1e6aff223d264e24dd5953622bdf2d32ad (diff) |
btrfs-progs: ins: dump-tree: Use %lld for extent data backref offset
Offset of extent data backref in extent item can be negative.
So, let's use %lld insteand of %llu to output readable value.
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'print-tree.c')
-rw-r--r-- | print-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tree.c b/print-tree.c index a8acb5b3..0e89c11f 100644 --- a/print-tree.c +++ b/print-tree.c @@ -480,10 +480,10 @@ void print_extent_item(struct extent_buffer *eb, int slot, int metadata) case BTRFS_EXTENT_DATA_REF_KEY: dref = (struct btrfs_extent_data_ref *)(&iref->offset); printf("\t\textent data backref root %llu " - "objectid %llu offset %llu count %u\n", + "objectid %llu offset %lld count %u\n", (unsigned long long)btrfs_extent_data_ref_root(eb, dref), (unsigned long long)btrfs_extent_data_ref_objectid(eb, dref), - (unsigned long long)btrfs_extent_data_ref_offset(eb, dref), + btrfs_extent_data_ref_offset(eb, dref), btrfs_extent_data_ref_count(eb, dref)); break; case BTRFS_SHARED_DATA_REF_KEY: |