diff options
author | David Sommerseth <davids@redhat.com> | 2010-01-08 19:56:21 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2010-01-08 19:56:21 +0100 |
commit | 24af40698f1486c899333ea1f129e87590cdee7e (patch) | |
tree | 475ca17b460360bde07bf48fb586153e00a16236 /src/dmidecodemodule.c | |
parent | ba6c5a8be14d309955640bac1c14580e6ca61bee (diff) | |
download | python-dmidecode-24af40698f1486c899333ea1f129e87590cdee7e.tar.gz python-dmidecode-24af40698f1486c899333ea1f129e87590cdee7e.tar.xz python-dmidecode-24af40698f1486c899333ea1f129e87590cdee7e.zip |
Ported fprintf() -> log_append() on XML functions
Diffstat (limited to 'src/dmidecodemodule.c')
-rw-r--r-- | src/dmidecodemodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c index 61e3b9a..93a956b 100644 --- a/src/dmidecodemodule.c +++ b/src/dmidecodemodule.c @@ -44,11 +44,11 @@ #include <libxml/tree.h> #include "libxml_wrap.h" -#include "xmlpythonizer.h" #include "dmidecodemodule.h" #include "dmixml.h" #include "dmierror.h" #include "dmilog.h" +#include "xmlpythonizer.h" #include "version.h" #include "dmidump.h" #include <mcheck.h> @@ -343,7 +343,7 @@ static PyObject *dmidecode_get_group(options *opt, const char *section) } // Convert the retrieved XML nodes to a Python dictionary - mapping = dmiMAP_ParseMappingXML_GroupName(opt->mappingxml, section); + mapping = dmiMAP_ParseMappingXML_GroupName(opt->logdata, opt->mappingxml, section); if( mapping == NULL ) { // Exception already set xmlFreeNode(dmixml_n); @@ -351,7 +351,7 @@ static PyObject *dmidecode_get_group(options *opt, const char *section) } // Generate Python dict out of XML node - pydata = pythonizeXMLnode(mapping, dmixml_n); + pydata = pythonizeXMLnode(opt->logdata, mapping, dmixml_n); // Clean up and return the resulting Python dictionary ptzmap_Free(mapping); @@ -406,7 +406,7 @@ static PyObject *dmidecode_get_typeid(options *opt, int typeid) } // Convert the retrieved XML nodes to a Python dictionary - mapping = dmiMAP_ParseMappingXML_TypeID(opt->mappingxml, opt->type); + mapping = dmiMAP_ParseMappingXML_TypeID(opt->logdata, opt->mappingxml, opt->type); if( mapping == NULL ) { // FIXME: Should we raise an exception here? // Now it passes the unit-test @@ -414,7 +414,7 @@ static PyObject *dmidecode_get_typeid(options *opt, int typeid) } // Generate Python dict out of XML node - pydata = pythonizeXMLnode(mapping, dmixml_n); + pydata = pythonizeXMLnode(opt->logdata, mapping, dmixml_n); // Clean up and return the resulting Python dictionary ptzmap_Free(mapping); |