diff options
author | David Sommerseth <davids@redhat.com> | 2009-05-19 11:56:41 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-05-20 14:19:57 +0200 |
commit | 9f34b97089fe7fb14c6877cc426658c06f04cb9e (patch) | |
tree | 964369e206120e9b853b4299590e1e76a3943f60 | |
parent | c5ad272970644cee25eefb2010061b751dd17519 (diff) | |
download | python-dmidecode-9f34b97089fe7fb14c6877cc426658c06f04cb9e.tar.gz python-dmidecode-9f34b97089fe7fb14c6877cc426658c06f04cb9e.tar.xz python-dmidecode-9f34b97089fe7fb14c6877cc426658c06f04cb9e.zip |
Fixed some errors in the XML layout on CacheInfo
-rw-r--r-- | src/dmidecode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c index 37fb6a0..e507689 100644 --- a/src/dmidecode.c +++ b/src/dmidecode.c @@ -1566,7 +1566,7 @@ void dmi_cache_location(xmlNode *node, u8 code) void dmi_cache_size(xmlNode *node, const char *tagname, u16 code) { - xmlNode *data_n = xmlNewChild(node, NULL, (xmlChar *) "CacheLocation", NULL); + xmlNode *data_n = xmlNewChild(node, NULL, (xmlChar *) tagname, NULL); assert( data_n != NULL ); dmixml_AddAttribute(data_n, "dmispec", "3.3.8"); dmixml_AddAttribute(data_n, "flags", "0x%04x", code); @@ -1603,8 +1603,8 @@ void dmi_cache_types(xmlNode *node, const char *tagname, u16 code) int i; for(i = 0; i <= 6; i++) { if(code & (1 << i)) { - xmlNode *n = dmixml_AddTextContent(data_n, "%s", types[i]); - dmixml_AddAttribute(n, "index", "%i", i); + xmlNode *n = dmixml_AddTextChild(data_n, "CacheType", "%s", types[i]); + dmixml_AddAttribute(n, "index", "%i", i+1); } } } |