summaryrefslogtreecommitdiffstats
path: root/src/xmlpythonizer.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-15 11:07:34 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-15 11:07:34 +0200
commit20030e42b4d3f7283f6143641cb009a8dbf1da24 (patch)
treef1b4ba001de5f825690a11829ea76e72907c5178 /src/xmlpythonizer.c
parent4f46bece8a32378062857da9d740fcee17ffc246 (diff)
downloadpython-dmidecode-20030e42b4d3f7283f6143641cb009a8dbf1da24.tar.gz
python-dmidecode-20030e42b4d3f7283f6143641cb009a8dbf1da24.tar.xz
python-dmidecode-20030e42b4d3f7283f6143641cb009a8dbf1da24.zip
Fixed wrong int->hex string conversion
Upper case hex string values is used in the pymap.xml file. This should be improved so that type id is case insensitive.
Diffstat (limited to 'src/xmlpythonizer.c')
-rw-r--r--src/xmlpythonizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c
index f6dfe15..bf3d323 100644
--- a/src/xmlpythonizer.c
+++ b/src/xmlpythonizer.c
@@ -487,7 +487,7 @@ ptzMAP *dmiMAP_ParseMappingXML_TypeID(xmlDoc *xmlmap, int typeid) {
}
memset(&typeid_s, 0, 16);
- snprintf(typeid_s, 14, "0x%02x", typeid);
+ snprintf(typeid_s, 14, "0x%02X", typeid);
// Find the <TypeMapping> section
node = dmixml_FindNode(node, "TypeMapping");