]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Make zpool status "remove:" label print in bold
authorAndrew Sun <as-com@users.noreply.github.com>
Tue, 1 Dec 2020 23:22:51 +0000 (18:22 -0500)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 23:22:51 +0000 (15:22 -0800)
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 <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrew Sun <me@andrewsun.com>
Closes #11255

cmd/zpool/zpool_main.c

index 85c9abdf251fddbcb576b813078fa02427801db8..1e16c89adb7909ce21196f2f4d4f036124fda6a2 100644 (file)
@@ -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;