goto out1;
dm_get_uuid(names->name, mpp->wwid);
+ dm_get_info(names->name, &mpp->dmi);
}
if (!vector_alloc_slot(mp))
char * f = format; /* format string cursor */
int fwd;
struct multipath_data * data;
- char buff[MAX_FIELD_LEN];
+ char buff[MAX_FIELD_LEN] = {};
do {
if (!TAIL)
data->snprint(buff, MAX_FIELD_LEN, mpp);
PRINT(c, TAIL, buff);
PAD(data->width);
+ buff[0] = '\0';
} while (*f++);
line[c - line - 1] = '\n';
if (strncmp(mpp->alias, mpp->wwid, WWID_SIZE))
c += sprintf(c, " (%%w) ");
+ c += sprintf(c, "%%d ");
c += snprint_vpr(c, 24, first_path(mpp));
fwd += snprint_multipath(buff + fwd, len - fwd, style, mpp);