Change inappropriate error message "at least 2 raid-devices needed for level 4 or 5" to only mention relevant raid level. Signed-off-by: Mateusz Grzonka <mateusz.grzonka@xxxxxxxxx> --- Create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Create.c b/Create.c index f5d57f8c..2c0b17e9 100644 --- a/Create.c +++ b/Create.c @@ -153,7 +153,7 @@ int Create(struct supertype *st, char *mddev, return 1; } if (s->raiddisks < 2 && s->level >= 4) { - pr_err("at least 2 raid-devices needed for level 4 or 5\n"); + pr_err("at least 2 raid-devices needed for level %d\n", s->level); return 1; } if (s->level <= 0 && s->sparedisks) { -- 2.26.2