mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Fix activated/deactivated log_verbose message
I see "Deactivated" message when I activate and "Activated" message when I deactivate. The code uses "activate" as boolean but it can be any one of the enum values from CHANGE_AY, CHANGE_AN, CHANGE_AE, etc. Signed-off-by: Malahal Naineni <malahal@us.ibm.com> Acked-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
0d408f0c43
commit
6911c90074
@ -104,8 +104,8 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
|
||||
|
||||
if (expected_count)
|
||||
log_verbose("%s %d logical volumes in volume group %s",
|
||||
activate ? "Activated" : "Deactivated",
|
||||
count, vg->name);
|
||||
(activate == CHANGE_AN || activate == CHANGE_ALN)?
|
||||
"Deactivated" : "Activated", count, vg->name);
|
||||
|
||||
return (expected_count != count) ? ECMD_FAILED : ECMD_PROCESSED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user