]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Monitor: use the "space protocol" for "Wrong-Level".
authorNeilBrown <neilb@suse.de>
Tue, 7 Apr 2015 23:18:55 +0000 (09:18 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 7 Apr 2015 23:18:55 +0000 (09:18 +1000)
"Wrong-Level" is a reason, not a component device, so it should
start with a space to indiciate this to alert().

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c

index 3647768a5a17898edcd8b0651695a2fb521ba17a..1cd378b7a95697d65bf0a72775ee66ebc8c55316 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -507,7 +507,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat,
         */
        if (array.level == 0 || array.level == -1) {
                if (!st->err && !st->from_config)
-                       alert("DeviceDisappeared", dev, "Wrong-Level", ainfo);
+                       alert("DeviceDisappeared", dev, " Wrong-Level", ainfo);
                st->err++;
                close(fd);
                return 0;