Skip to contentSkip to conversation

master - debug: log scanned value

PATCH Zdenek Kabelac 1 participant 1 message Apr 2, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=53ef14fca0e85fef0df41665a64d21166d8b684d
Commit:        53ef14fca0e85fef0df41665a64d21166d8b684d
Parent:        e28e22b9e1e4f7243608aa24ddf43ec63afd1751
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Mar 27 13:43:24 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Apr 2 13:38:41 2015 +0200

debug: log scanned value

Fix verbose print of scanned value for topology attribute. Result is set afterwards in sectors.

---
 lib/device/dev-type.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/device/dev-type.c +1 -1
index 882c08d..d3407d1 100644
@@ -799,7 +799,7 @@ static unsigned long _dev_topology_attribute(struct dev_types *dt,
 	}
 
 	log_very_verbose("Device %s: %s is %lu%s.",
-			 dev_name(dev), attribute, result, default_value ? "" : " bytes");
+			 dev_name(dev), attribute, value, default_value ? "" : " bytes");
 
 	result = value >> SECTOR_SHIFT;