Blame SOURCES/0001-Unify-error-message.patch

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