Unify error message.
PATCH 1/1 Unify error message.
Provide the same error message for the same error that can occur in Grow.c and super-intel.c.
Signed-off-by Lukasz Florczak <[email protected]>
--- Grow.c | 4 ++-- super-intel.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Grow.c +2 -2
@@ -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; } }
super-intel.c +2 -2
@@ -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 ; } }
Signature · 1 line
2.27.0
Jes Sorensen
AppliedQuoted 3 lines · Lukasz Florczak
Provide the same error message for the same error that can occur in
Grow.candsuper-intel.c.Signed-off-by Lukasz Florczak <[email protected]>
Applied, thanks
Jes