diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 0783271f4734..6d6e8dee58bc 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -2307,19 +2307,19 @@ print_status_trim(vdev_stat_t *vs, boolean_t verbose) } (void) localtime_r(&t, &zaction_ts); - (void) strftime(tbuf, sizeof (tbuf), "%c", &zaction_ts); + (void) ctime_r(&t, tbuf); switch (vs->vs_trim_state) { case VDEV_TRIM_SUSPENDED: - (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", + (void) snprintf(zbuf, sizeof (zbuf), ", %s %.24s", gettext("suspended, started at"), tbuf); break; case VDEV_TRIM_ACTIVE: - (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", + (void) snprintf(zbuf, sizeof (zbuf), ", %s %.24s", gettext("started at"), tbuf); break; case VDEV_TRIM_COMPLETE: - (void) snprintf(zbuf, sizeof (zbuf), ", %s %s", + (void) snprintf(zbuf, sizeof (zbuf), ", %s %.24s", gettext("completed at"), tbuf); break; }