summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-12-03 19:18:33 +0000
committerMilan Broz <mbroz@redhat.com>2009-12-03 19:18:33 +0000
commitfec4de956314593dfb854d4847c18ee6df66d5da (patch)
treecd59a1d96cdbf35b92cf1f1cd9073c9767cdb81e /tools/lvchange.c
parent60184834b55414359fa030ae328e7971c9e4037c (diff)
downloadlvm2-fec4de956314593dfb854d4847c18ee6df66d5da.tar.gz
lvm2-fec4de956314593dfb854d4847c18ee6df66d5da.tar.xz
lvm2-fec4de956314593dfb854d4847c18ee6df66d5da.zip
Fix tools to report error when stopped by user.
(And do not produce internal error message.)
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index ab4dc337..f43b07af 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -183,7 +183,7 @@ static int lvchange_resync(struct cmd_context *cmd,
yes_no_prompt("Do you really want to deactivate "
"logical volume %s to resync it? [y/n]: ",
lv->name) == 'n') {
- log_print("Logical volume \"%s\" not resynced",
+ log_error("Logical volume \"%s\" not resynced",
lv->name);
return 0;
}
@@ -433,7 +433,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
yes_no_prompt("Logical volume %s will be "
"deactivated temporarily. "
"Continue? [y/n]: ", lv->name) == 'n') {
- log_print("%s device number not changed.",
+ log_error("%s device number not changed.",
lv->name);
return 0;
}