btrfs-progs: dump-tree: print c/o/s/r time of ROOT_ITEM
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Tue, 31 Oct 2017 05:40:24 +0000 (14:40 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 3 Jan 2018 16:08:57 +0000 (17:08 +0100)
commitf23506c8a43f4c330884bd33bf9f1833368af6a3
tree5c0418f7d1c4dd0aabfbc8ff91e4d170c60504e9
parent89568f1bdfac95a02c0244d06920e485fdedfa0c
btrfs-progs: dump-tree: print c/o/s/r time of ROOT_ITEM

Currently ctime/otime/stime/rtime of ROOT_ITEM are not printed in
print_root_item().  Fix this and print them if the values are not zero.
The function print_timespec() is moved forward to reuse.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
ctree.h
print-tree.c