Skip to content

Commit c2c8d98

Browse files
committed
btrfs-progs: print-tree: fix the format string for EXTENT_OWNER_REF_KEY
There is missing tab for EXTENT_OWNER_REF_KEY, which results output not following the same indent: item 13 key (84082688 EXTENT_ITEM 1048576) itemoff 15763 itemsize 62 refs 1 gen 14 flags DATA (172 0x100) textent owner root 256 <<< (178 0xdea30debbf5f519) extent data backref root 256 objectid 258 offset 0 count 1 And it's caused by a misplaced 't': printf("\t\(%u 0x%llx) textent owner root %llu\n", There is no special escape sequence "\(", nor the word "textent", it looks like the 't' is incorrectly placed by commit ad8a831 ("btrfs-progs: dump-tree: output the sequence number for inline references"). Fix it so that the output is correct now: item 13 key (84082688 EXTENT_ITEM 1048576) itemoff 15763 itemsize 62 refs 1 gen 14 flags DATA (172 0x100) textent owner root 256 (178 0xdea30debbf5f519) extent data backref root 256 objectid 258 offset 0 count 1 Signed-off-by: Qu Wenruo <wqu@suse.com>
1 parent 208d38e commit c2c8d98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel-shared/print-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ void print_extent_item(struct extent_buffer *eb, int slot, int metadata)
579579
type, seq, offset, btrfs_shared_data_ref_count(eb, sref));
580580
break;
581581
case BTRFS_EXTENT_OWNER_REF_KEY:
582-
printf("\t\(%u 0x%llx) textent owner root %llu\n",
582+
printf("\t\t(%u 0x%llx) extent owner root %llu\n",
583583
type, seq, offset);
584584
break;
585585
default:

0 commit comments

Comments
 (0)