]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Improve error message when mode is set twice.
authorNeil Brown <neilb@suse.de>
Mon, 4 Apr 2005 05:16:29 +0000 (05:16 +0000)
committerNeil Brown <neilb@suse.de>
Mon, 4 Apr 2005 05:16:29 +0000 (05:16 +0000)
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
ChangeLog
mdadm.c

index 15fa6c62e3abd5e2496187122ddd0df4f2487300..d9d3b0635521d8e19b5a243a9c0a7a3dbab2b3e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,8 +15,7 @@ Changes Prior to 1.9.0 release
        it to find devices, rather than only once.
     -   Make "mdadm -Ss" stop stacked devices properly, by reversing the
        order in which arrays are stopped.
-    -   Correct error message when last device to be added to an array
-        fails.
+    -   Improve some error messages.
 
 Changes Prior to 1.8.0 release
     -   Makefile cleanup from  Luca Berra <bluca@comedia.it>
diff --git a/mdadm.c b/mdadm.c
index 798d6386c6df05530593d34dcc721fd692d8f93e..868a48b2959b3a7d7866979d7c400e2c0babf8a7 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -172,7 +172,7 @@ int main(int argc, char *argv[])
                                fprintf(stderr, "--%s", long_options[option_index].name);
                        else
                                fprintf(stderr, "-%c", opt);
-                       fprintf(stderr, " would set mode to %s, but it is already %s.\n",
+                       fprintf(stderr, " would set mdadm mode to \"%s\", but it is already set to \"%s\".\n",
                                map_num(modes, newmode),
                                map_num(modes, mode));
                        exit(2);