Assemble: print verbose messages when finding members in containers

.. so that "-Av" gives more hints at what is going on.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2009-10-19 17:04:12 +11:00
parent 8f1b2bbbb9
commit 7636b5a8bb
1 changed files with 6 additions and 0 deletions

View File

@ -315,6 +315,9 @@ int Assemble(struct supertype *st, char *mddev,
} }
/* It is worth looking inside this container. /* It is worth looking inside this container.
*/ */
if (verbose > 0)
fprintf(stderr, Name ": looking in container %s\n",
devname);
next_member: next_member:
if (tmpdev->content) if (tmpdev->content)
content = tmpdev->content; content = tmpdev->content;
@ -420,6 +423,9 @@ int Assemble(struct supertype *st, char *mddev,
st->ss->free_super(st); st->ss->free_super(st);
return 1; return 1;
} }
if (verbose > 0)
fprintf(stderr, Name ": found match on member %s in %s\n",
content->text_version, devname);
break; break;
} }
if (st == NULL) if (st == NULL)