From e2ceb90095ab008c13a3d0db0bbf1bc2bd8557f2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 17 Apr 2016 14:51:58 +0200 Subject: [PATCH] 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 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 08d7d45df..e2301eabd 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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 diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index f8b6d893c..6f18ae2a8 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -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; }