]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Unify error message.
authorLukasz Florczak <lukasz.florczak@linux.intel.com>
Tue, 15 Mar 2022 08:30:30 +0000 (09:30 +0100)
committerJes Sorensen <jsorensen@fb.com>
Tue, 15 Mar 2022 16:20:04 +0000 (12:20 -0400)
Provide the same error message for the same error that can occur in Grow.c and super-intel.c.

Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c
super-intel.c

diff --git a/Grow.c b/Grow.c
index 9c6fc95e42193cdc3aad870b76d1d9f4c29a68f1..9a947204cccee887d7d10785d4bd956d5661094c 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1001,8 +1001,8 @@ int remove_disks_for_takeover(struct supertype *st,
                                rv = 1;
                        sysfs_free(arrays);
                        if (rv) {
-                               pr_err("Error. Cannot perform operation on /dev/%s\n", st->devnm);
-                               pr_err("For this operation it MUST be single array in container\n");
+                               pr_err("Error. Cannot perform operation on %s- for this operation "
+                                      "it MUST be single array in container\n", st->devnm);
                                return rv;
                        }
                }
index d5fad1023d4ae37e02cc9c148e183a834fb689b0..5ffa7636732b1d16740aeb2304600aa043f1a052 100644 (file)
@@ -11683,8 +11683,8 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
                struct imsm_super *mpb = super->anchor;
 
                if (mpb->num_raid_devs > 1) {
-                       pr_err("Error. Cannot perform operation on %s- for this operation it MUST be single array in container\n",
-                              geo->dev_name);
+                       pr_err("Error. Cannot perform operation on %s- for this operation "
+                              "it MUST be single array in container\n", geo->dev_name);
                        change = -1;
                }
        }