* [PATCH] Fix activated/deactivated log message
@ 2009-12-07 14:43 Malahal Naineni
0 siblings, 0 replies; only message in thread
From: Malahal Naineni @ 2009-12-07 14:43 UTC (permalink / raw)
To: lvm-devel
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>
diff -r b435737bd332 -r 8b2a589b8b02 tools/vgchange.c
--- a/tools/vgchange.c Mon Dec 07 01:07:01 2009 -0800
+++ b/tools/vgchange.c Mon Dec 07 06:39:17 2009 -0800
@@ -104,8 +104,8 @@ static int _activate_lvs_in_vg(struct cm
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-07 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 14:43 [PATCH] Fix activated/deactivated log message Malahal Naineni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.