From f0bddd0b77f3d71b09eba00ab942eb3fb564613a Mon Sep 17 00:00:00 2001 From: "Soenke J. Peters" Date: Sat, 23 Dec 2017 22:42:50 +0100 Subject: [PATCH] Minor fix to debug output --- src/xmlconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmlconfig.c b/src/xmlconfig.c index e45d474d..7f2ed565 100644 --- a/src/xmlconfig.c +++ b/src/xmlconfig.c @@ -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); @@ -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) { @@ -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");