diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index f51b20cfa5ba..7ccccf2e2a84 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -1417,7 +1417,7 @@ max_width(zpool_handle_t *zhp, nvlist_t *nv, int depth, int max, uint_t c, children; int ret; - name = zpool_vdev_name(g_zfs, zhp, nv, name_flags | VDEV_NAME_TYPE_ID); + name = zpool_vdev_name(g_zfs, zhp, nv, name_flags); if (strlen(name) + depth > max) max = strlen(name) + depth; @@ -2030,7 +2030,7 @@ show_import(nvlist_t *config) (void) printf(gettext(" config:\n\n")); - namewidth = max_width(NULL, nvroot, 0, 0, 0); + namewidth = max_width(NULL, nvroot, 0, 0, VDEV_NAME_TYPE_ID); if (namewidth < 10) namewidth = 10; @@ -5981,7 +5981,8 @@ status_callback(zpool_handle_t *zhp, void *data) ZPOOL_CONFIG_SCAN_STATS, (uint64_t **)&ps, &c); print_scan_status(ps); - namewidth = max_width(zhp, nvroot, 0, 0, cbp->cb_name_flags); + namewidth = max_width(zhp, nvroot, 0, 0, cbp->cb_name_flags | + VDEV_NAME_TYPE_ID); if (namewidth < 10) namewidth = 10;