Skip to contentSkip to conversation

master - debug: update message in libdm

PATCH Zdenek Kabelac 1 participant 1 message Apr 18, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e2ceb90095ab008c13a3d0db0bbf1bc2bd8557f2
Commit:        e2ceb90095ab008c13a3d0db0bbf1bc2bd8557f2
Parent:        f5cf6cc9ed756ec1e98d62a31aba803577443ad7
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 17 14:51:58 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Apr 18 12:32:56 2016 +0200

debug: update message in libdm

When dm_tree_find_node_by_uuid() fails to find passed uuid, report in lof_debug the complete original uuid, not the one stripped of LVM- prefix.

TODO: inspect manipulation with LVM- prefix here.

---
 WHATS_NEW_DM          |    1 +
 libdm/libdm-deptree.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW_DM +1 -0
index 08d7d45..e2301ea 100644
@@ -1,5 +1,6 @@
 Version 1.02.122 - 9th April 2016
 =================================
+  Do not strip LVM- when debug reporting not found uuid.
   Change log_debug ioctl flags from single characters into words.
 
 Version 1.02.121 - 26th March 2016
libdm/libdm-deptree.c +1 -1
index f8b6d89..6f18ae2 100644
@@ -599,7 +599,7 @@ static struct dm_tree_node *_find_dm_tree_node_by_uuid(struct dm_tree *dtree,
 		return node;
 	}
 
-	log_debug("Not matched uuid %s in deptree.", uuid + default_uuid_prefix_len);
+	log_debug("Not matched uuid %s in deptree.", uuid);
 	return NULL;
 }