Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c460f35cdadc85...
Commit: c460f35cdadc853fc5bb7b796dbc0ead6968b82c
Parent: 355258be58fe52df0e90cb3831bc0e09f06d2e2a
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Jul 1 09:53:58 2014 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Jul 2 10:34:40 2014 +0200
raid: switch to log_warn
Use log_warn for warning message.
log_error is printed when command returns error code.
---
tools/lvconvert.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 28cbb32..3e00e17 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -1914,10 +1914,9 @@ static int _lvconvert_raid(struct logical_volume *lv, struct
lvconvert_params *l
}
if (sync_percent != DM_PERCENT_100) {
- log_error("WARNING: %s/%s is not in-sync.",
- lv->vg->name, lv->name);
- log_error("WARNING: Portions of the array may"
- " be unrecoverable.");
+ log_warn("WARNING: %s/%s is not in-sync.",
+ lv->vg->name, lv->name);
+ log_warn("WARNING: Portions of the array may be unrecoverable.");
/*
* The kernel will not allow a device to be replaced