Skip to contentSkip to conversation

master - activation: log target version present

PATCH Alasdair Kergon 1 participant 1 message Aug 7, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0650a16a2273f9ce8b224533083055b67cbff892
Commit:        0650a16a2273f9ce8b224533083055b67cbff892
Parent:        7b5ea9a5a89b4eff41520142f719a7d89435f7df
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Tue Aug 7 18:47:33 2012 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Tue Aug 7 18:47:33 2012 +0100

activation: log target version present

Log (very verbose) the target version present in target_version.

---
 lib/activate/activate.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
lib/activate/activate.c +5 -0
index 3156f01..512adcf 100644
@@ -514,6 +514,11 @@ int target_version(const char *target_name, uint32_t *maj,
 	} while (last_target != target);
 
       out:
+	if (r)
+		log_very_verbose("Found %s target "
+				 "v%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".",
+				 target_name, *maj, *min, *patchlevel);
+
 	dm_task_destroy(dmt);
 
 	return r;