git: 79f38143bda7 - main - sesutil: Widen "Desc" field to fit "Drive Slot 23"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Jan 2022 11:44:57 UTC
The branch main has been updated by phk: URL: https://cgit.FreeBSD.org/src/commit/?id=79f38143bda7c41a45e2102df84870026e9ccf43 commit 79f38143bda7c41a45e2102df84870026e9ccf43 Author: Poul-Henning Kamp <phk@FreeBSD.org> AuthorDate: 2022-01-02 11:44:02 +0000 Commit: Poul-Henning Kamp <phk@FreeBSD.org> CommitDate: 2022-01-02 11:44:02 +0000 sesutil: Widen "Desc" field to fit "Drive Slot 23" --- usr.sbin/sesutil/sesutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/sesutil/sesutil.c b/usr.sbin/sesutil/sesutil.c index b83230c2ddb2..9e6098e1da35 100644 --- a/usr.sbin/sesutil/sesutil.c +++ b/usr.sbin/sesutil/sesutil.c @@ -642,8 +642,8 @@ show_device(int fd, int elm_idx, encioc_elm_status_t e_status, encioc_elm_desc_t } xo_open_instance("elements"); xo_emit("{e:type/device_slot}"); - xo_emit("{d:description/%-8s} ", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : "-"); - xo_emit("{e:description/%-8s}", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : ""); + xo_emit("{d:description/%-15s} ", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : "-"); + xo_emit("{e:description/%-15s}", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : ""); xo_emit("{d:device_names/%-7s} ", e_devname.elm_names_len > 0 ? e_devname.elm_devnames : "-"); xo_emit("{e:device_names/%s}", e_devname.elm_names_len > 0 ? e_devname.elm_devnames : ""); xo_emit("{d:model/%-25s} ", model ? model : "-"); @@ -824,7 +824,7 @@ show(int argc, char **argv __unused) case ELMTYP_DEVICE: case ELMTYP_ARRAY_DEV: if (e_ptr[j].elm_type != prev_type) - xo_emit("Desc Dev Model Ident Size/Status\n"); + xo_emit("Desc Dev Model Ident Size/Status\n"); show_device(fd, e_ptr[j].elm_idx, e_status, e_desc); prev_type = e_ptr[j].elm_type;