sesutils, pass the correct element type when printing the status of a given

element of the ses.

Sponsored by:	Gandi.net
This commit is contained in:
Baptiste Daroussin 2015-12-11 11:08:00 +00:00
parent 845614cd22
commit f57605fb7d

View file

@ -392,7 +392,7 @@ objmap(int argc, char **argv __unused)
printf("\tElement %u, Type: %s\n", e_ptr[j].elm_idx,
geteltnm(e_ptr[j].elm_type));
printf("\t\tStatus: %s\n",
stat2ascii(e_ptr[i].elm_type, e_status.cstat));
stat2ascii(e_ptr[j].elm_type, e_status.cstat));
if (e_desc.elm_desc_len > 0) {
printf("\t\tDescription: %s\n",
e_desc.elm_desc_str);