Skip to content

Commit

Permalink
Make zpool status "remove:" label print in bold
Browse files Browse the repository at this point in the history
When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Sun <[email protected]>
Closes #11255
  • Loading branch information
as-com authored Dec 1, 2020
1 parent aa2778d commit 95a78a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7595,7 +7595,7 @@ print_removal_status(zpool_handle_t *zhp, pool_removal_stat_t *prs)
vdev_name = zpool_vdev_name(g_zfs, zhp,
child[prs->prs_removing_vdev], B_TRUE);

(void) printf(gettext("remove: "));
printf_color(ANSI_BOLD, gettext("remove: "));

start = prs->prs_start_time;
end = prs->prs_end_time;
Expand Down

0 comments on commit 95a78a0

Please sign in to comment.