c0f891
From f1cc8ab9ab6a92c3cd94ab7590b46285e214681e Mon Sep 17 00:00:00 2001
c0f891
From: Lukasz Florczak <lukasz.florczak@linux.intel.com>
c0f891
Date: Tue, 15 Mar 2022 09:30:30 +0100
37f2b0
Subject: [PATCH 01/83] Unify error message.
c0f891
c0f891
Provide the same error message for the same error that can occur in Grow.c and super-intel.c.
c0f891
c0f891
Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
c0f891
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
c0f891
---
c0f891
 Grow.c        | 4 ++--
c0f891
 super-intel.c | 4 ++--
c0f891
 2 files changed, 4 insertions(+), 4 deletions(-)
c0f891
c0f891
diff --git a/Grow.c b/Grow.c
c0f891
index 9c6fc95e..9a947204 100644
c0f891
--- a/Grow.c
c0f891
+++ b/Grow.c
c0f891
@@ -1001,8 +1001,8 @@ int remove_disks_for_takeover(struct supertype *st,
c0f891
 				rv = 1;
c0f891
 			sysfs_free(arrays);
c0f891
 			if (rv) {
c0f891
-				pr_err("Error. Cannot perform operation on /dev/%s\n", st->devnm);
c0f891
-				pr_err("For this operation it MUST be single array in container\n");
c0f891
+				pr_err("Error. Cannot perform operation on %s- for this operation "
c0f891
+				       "it MUST be single array in container\n", st->devnm);
c0f891
 				return rv;
c0f891
 			}
c0f891
 		}
c0f891
diff --git a/super-intel.c b/super-intel.c
c0f891
index d5fad102..5ffa7636 100644
c0f891
--- a/super-intel.c
c0f891
+++ b/super-intel.c
c0f891
@@ -11683,8 +11683,8 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
c0f891
 		struct imsm_super *mpb = super->anchor;
c0f891
 
c0f891
 		if (mpb->num_raid_devs > 1) {
c0f891
-			pr_err("Error. Cannot perform operation on %s- for this operation it MUST be single array in container\n",
c0f891
-			       geo->dev_name);
c0f891
+			pr_err("Error. Cannot perform operation on %s- for this operation "
c0f891
+			       "it MUST be single array in container\n", geo->dev_name);
c0f891
 			change = -1;
c0f891
 		}
c0f891
 	}
c0f891
-- 
37f2b0
2.38.1
c0f891