sesutil: Widen "Desc" field to fit "Drive Slot 23"

This commit is contained in:
Poul-Henning Kamp 2022-01-02 11:44:02 +00:00
parent bffefaf3e1
commit 79f38143bd

View File

@ -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 : "-");