btrfs-progs: Enhance and export print_objectid function
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 29 Aug 2016 08:08:59 +0000 (16:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Sep 2016 08:04:04 +0000 (10:04 +0200)
commit7aafabd2b8ac17645fb58bd27cfe238ed2908c1a
treec2ce899428ae9de930fa127d425b5b4f3d9180bc
parent6819fbcdcab63c2d95da1a2997e37be9a71ca533
btrfs-progs: Enhance and export print_objectid function

This function is quite useful for a lot of error report.
Enhance it to support custom output other than stdout.
And export it for later btrfsck enhancement.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
print-tree.c
print-tree.h