Fix 'zpool iostat -v' cache and log output

Fixes formatting errors from commit d6418de057

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: DHE <git@dehacked.net>
Closes #6060
This commit is contained in:
DeHackEd 2017-04-24 13:33:28 -04:00 committed by Brian Behlendorf
parent e102363a66
commit 5034557bdd

View File

@ -3611,6 +3611,7 @@ children:
!cb->cb_vdev_names) { !cb->cb_vdev_names) {
print_iostat_dashes(cb, 0, "logs"); print_iostat_dashes(cb, 0, "logs");
} }
printf("\n");
for (c = 0; c < children; c++) { for (c = 0; c < children; c++) {
uint64_t islog = B_FALSE; uint64_t islog = B_FALSE;
@ -3645,6 +3646,7 @@ children:
!cb->cb_vdev_names) { !cb->cb_vdev_names) {
print_iostat_dashes(cb, 0, "cache"); print_iostat_dashes(cb, 0, "cache");
} }
printf("\n");
for (c = 0; c < children; c++) { for (c = 0; c < children; c++) {
vname = zpool_vdev_name(g_zfs, zhp, newchild[c], vname = zpool_vdev_name(g_zfs, zhp, newchild[c],