Make the verbose output more usable when the array name is not given. Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx> --- Assemble.c | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Assemble.c b/Assemble.c index 05ace561fb50..a72d427f4773 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1288,9 +1288,21 @@ try_again: */ if (!st && ident->st) st = ident->st; - if (c->verbose>0) - pr_err("looking for devices for %s\n", - mddev ? mddev : "further assembly"); + + if (c->verbose > 0) { + char uuid[64], *id; + + if (mddev) + id = mddev; + else if (ident->uuid_set) { + __fname_from_uuid(ident->uuid, + st ? st->ss->swapuuid : 0, + uuid, ':'); + id = uuid + 5; + } else + id = "further assembly"; + pr_err("looking for devices for %s\n", id); + } content = &info; if (st) -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html