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

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