[lvm-devel] master - pvcreate: improve debug message

David Teigland teigland at fedoraproject.org
Wed May 4 17:12:18 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7c1e6011644abd00dac7f71baf330f69bd076381
Commit:        7c1e6011644abd00dac7f71baf330f69bd076381
Parent:        1df6769acabd99fe062ebac1c8290da1ef1020f7
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Wed May 4 12:11:13 2016 -0500
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Wed May 4 12:11:13 2016 -0500

pvcreate: improve debug message

state what the printed UUID is.
---
 tools/toollib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/toollib.c b/tools/toollib.c
index c86900a..f1fe5b1 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -3818,8 +3818,8 @@ static int _pvcreate_check_single(struct cmd_context *cmd,
 	if (!found)
 		return 1;
 
-	log_debug("Checking device %s for pvcreate %.32s.",
-		  pv_dev_name(pv), pv->dev->pvid[0] ? pv->dev->pvid : "");
+	log_debug("Checking pvcreate arg %s which has existing PVID: %.32s.",
+		  pv_dev_name(pv), pv->dev->pvid[0] ? pv->dev->pvid : "<none>");
 
 	/*
 	 * This test will fail if the device belongs to an MD array.




More information about the lvm-devel mailing list