Skip to content

Commit 9fcc2e7

Browse files
Yuri Pankovbehlendorf
authored andcommitted
Fix vdev health padding in zpool list -v
Do not (incorrectly, right instead left) pad health string itself, it will be taken care of when printing property value below. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Yuri Pankov <[email protected]> Closes #11899
1 parent e684da8 commit 9fcc2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/zpool/zpool_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5950,7 +5950,7 @@ print_one_column(zpool_prop_t prop, uint64_t value, const char *str,
59505950
break;
59515951
case ZPOOL_PROP_HEALTH:
59525952
width = 8;
5953-
snprintf(propval, sizeof (propval), "%-*s", (int)width, str);
5953+
(void) strlcpy(propval, str, sizeof (propval));
59545954
break;
59555955
default:
59565956
zfs_nicenum_format(value, propval, sizeof (propval), format);

0 commit comments

Comments
 (0)