mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
cleanup: use print when displaying info
Use error or warn only when we really have some problem in the code.
This commit is contained in:
parent
54184f92ac
commit
d1d50d4023
@ -1629,7 +1629,7 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd,
|
|||||||
lv_check_transient(lv); /* TODO check this in lib for all commands? */
|
lv_check_transient(lv); /* TODO check this in lib for all commands? */
|
||||||
|
|
||||||
if (!(lv->status & PARTIAL_LV)) {
|
if (!(lv->status & PARTIAL_LV)) {
|
||||||
log_warn("%s is consistent. Nothing to repair.", lv->name);
|
log_print_unless_silent("%s is consistent. Nothing to repair.", lv->name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1640,14 +1640,14 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd,
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if (failed_mimages)
|
if (failed_mimages)
|
||||||
log_error("Mirror status: %d of %d images failed.",
|
log_print_unless_silent("Mirror status: %d of %d images failed.",
|
||||||
failed_mimages, original_mimages);
|
failed_mimages, original_mimages);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Count the failed log devices
|
* Count the failed log devices
|
||||||
*/
|
*/
|
||||||
if (failed_logs)
|
if (failed_logs)
|
||||||
log_error("Mirror log status: %d of %d images failed.",
|
log_print_unless_silent("Mirror log status: %d of %d images failed.",
|
||||||
failed_logs, original_logs);
|
failed_logs, original_logs);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user