From f57605fb7d1f263ee73dd00a9ca0198d34c4ac42 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 11 Dec 2015 11:08:00 +0000 Subject: [PATCH] sesutils, pass the correct element type when printing the status of a given element of the ses. Sponsored by: Gandi.net --- usr.sbin/sesutil/sesutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/sesutil/sesutil.c b/usr.sbin/sesutil/sesutil.c index 7ce904541959..2913f280220d 100644 --- a/usr.sbin/sesutil/sesutil.c +++ b/usr.sbin/sesutil/sesutil.c @@ -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);