sesutil: Widen "Desc" field to fit "Drive Slot 23"
This commit is contained in:
parent
bffefaf3e1
commit
79f38143bd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user