master - cleanup: use print when displaying info
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1d50d4023d7825fe9d9d3811375e44b90def529 Commit: d1d50d4023d7825fe9d9d3811375e44b90def529 Parent: 54184f92acea10de5b75ad013f6c8aaf7db03176 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue May 20 12:56:49 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue May 20 21:50:29 2014 +0200
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 files changed, 5 insertions(+), 5 deletions(-)
tools/lvconvert.c +5 -5
@@ -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