]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Assemble: allow members of containers to be assembled and auto-assembled.
[thirdparty/mdadm.git] / super1.c
index 4cfd786009a6c9a8b24c944d0fea9f44f04b3321..3d392cb05c996dc96f0156c11dd0103707e10be6 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -353,9 +353,11 @@ static void brief_examine_super1(struct supertype *st)
        else if (sb->set_name[0])
                nm = sb->set_name;
        else
-               nm = "??";
+               nm = NULL;
 
-       printf("ARRAY /dev/md/%s level=%s ", nm, c?c:"-unknown-");
+       printf("ARRAY%s%s level=%s ",
+              nm ? " /dev/md/":"", nm,
+              c?c:"-unknown-");
        sb_offset = __le64_to_cpu(sb->super_offset);
        if (sb_offset <= 4)
                printf("metadata=1.1 ");