Skip to content

Commit

Permalink
Minor fix to debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
speters committed Dec 23, 2017
1 parent c2f88f3 commit f0bddd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xmlconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ configPtr parseConfig(xmlNodePtr cur)
cur = cur->children;
} else if (strstr((char *)cur->name, "device")) {
chrPtr = getPropertyNode(cur->properties, (xmlChar *)"ID");
logIT(LOG_INFO, " Device ID=%s", cfgPtr->devID);
logIT(LOG_INFO, " Device ID=%s", chrPtr);
if (chrPtr) {
cfgPtr->devID = calloc(strlen(chrPtr) + 1, sizeof(char));
strcpy(cfgPtr->devID, chrPtr);
Expand Down Expand Up @@ -722,7 +722,7 @@ unitPtr parseUnit(xmlNodePtr cur)
if (strstr((char *)cur->name, "unit")) {
unit = getPropertyNode(cur->properties, (xmlChar *)"name");
if (unit) {
// neue Unit gelesen
// read new unit
logIT(LOG_INFO, "New unit: %s", unit);
uPtr = newUnitNode(uStartPtr);
if (! uStartPtr) {
Expand Down Expand Up @@ -1401,7 +1401,7 @@ int parseXMLFile(char *filename)
xmlFreeDoc(doc);
return 0;
}
// Run Xinlcude
// Run XInclude
short xc = 0;
if ((xc = xmlXIncludeProcessFlags(doc, XML_PARSE_XINCLUDE | XML_PARSE_NOXINCNODE)) == 0) {
logIT(LOG_WARNING, "Didn't perform XInclude");
Expand Down

0 comments on commit f0bddd0

Please sign in to comment.