diff options
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -227,9 +227,10 @@ static void brief_examine_super0(void *sbv) { mdp_super_t *sb = sbv; char *c=map_num(pers, sb->level); + char *nm; printf("ARRAY %s level=%s num-devices=%d UUID=", - get_md_name(sb->md_minor), + nm = get_md_name(sb->md_minor), c?c:"-unknown-", sb->raid_disks); if (sb->minor_version >= 90) printf("%08x:%08x:%08x:%08x", sb->set_uuid0, sb->set_uuid1, @@ -237,6 +238,7 @@ static void brief_examine_super0(void *sbv) else printf("%08x", sb->set_uuid0); printf("\n"); + put_md_name(nm); } static void detail_super0(void *sbv, char *homehost) |