summaryrefslogtreecommitdiffstats
path: root/Monitor.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-04-08 01:18:55 +0200
committerNeilBrown <neilb@suse.de>2015-04-08 01:18:55 +0200
commit04e27c2084cb7a160b6ed569486e0621bbc7ed36 (patch)
treeec51c2032ca62b4952e8a1ab9ef3cc6ae1161b1c /Monitor.c
parentMonitor: Obey "space protocol" when writing to syslog. (diff)
downloadmdadm-04e27c2084cb7a160b6ed569486e0621bbc7ed36.tar.xz
mdadm-04e27c2084cb7a160b6ed569486e0621bbc7ed36.zip
Monitor: use the "space protocol" for "Wrong-Level".
"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>
Diffstat (limited to 'Monitor.c')
-rw-r--r--Monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Monitor.c b/Monitor.c
index 3647768a..1cd378b7 100644
--- 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;