print_dev_replace_item() passed btrfs_dev_replace_time_started() to both
the "start time" and the "stop time" lines, so dump-tree showed the
start time as the stop time of a finished or canceled replace.
Fixes: 6ad89f67a9ac ("btrfs-progs: print-tree: add support for dev-replace item")
Assisted-by: Claude:claude-opus-5-5
state_str, btrfs_dev_replace_num_write_errors(eb, ptr),
btrfs_dev_replace_num_uncorrectable_read_errors(eb, ptr));
print_u64_timespec(btrfs_dev_replace_time_started(eb, ptr), "\t\tstart time ");
- print_u64_timespec(btrfs_dev_replace_time_started(eb, ptr), "\t\tstop time ");
+ print_u64_timespec(btrfs_dev_replace_time_stopped(eb, ptr), "\t\tstop time ");
}
void __btrfs_print_leaf(struct extent_buffer *eb, unsigned int mode)