From d1d50d4023d7825fe9d9d3811375e44b90def529 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 20 May 2014 12:56:49 +0200 Subject: [PATCH] cleanup: use print when displaying info Use error or warn only when we really have some problem in the code. --- tools/lvconvert.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 50771b4e4..3f1fd468b 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -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? */ 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; } @@ -1640,15 +1640,15 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd, return_0; if (failed_mimages) - log_error("Mirror status: %d of %d images failed.", - failed_mimages, original_mimages); + log_print_unless_silent("Mirror status: %d of %d images failed.", + failed_mimages, original_mimages); /* * Count the failed log devices */ if (failed_logs) - log_error("Mirror log status: %d of %d images failed.", - failed_logs, original_logs); + log_print_unless_silent("Mirror log status: %d of %d images failed.", + failed_logs, original_logs); /* * Find out our policies