Skip to content

Commit 96904d8

Browse files
author
Yuri Pankov
authored
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 3e66053 commit 96904d8

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
@@ -6021,7 +6021,7 @@ print_one_column(zpool_prop_t prop, uint64_t value, const char *str,
60216021
break;
60226022
case ZPOOL_PROP_HEALTH:
60236023
width = 8;
6024-
snprintf(propval, sizeof (propval), "%-*s", (int)width, str);
6024+
(void) strlcpy(propval, str, sizeof (propval));
60256025
break;
60266026
default:
60276027
zfs_nicenum_format(value, propval, sizeof (propval), format);

0 commit comments

Comments
 (0)