2 new revisions: Revision: bda06edd8287 Branch: default Author: Michael Whapples Date: Wed Aug 20 16:30:55 2014 UTC Log: Add libxml indicator to libxml error messages http://code.google.com/p/liblouisutdml/source/detail?r=bda06edd8287 Revision: c1596626ddd0 Branch: default Author: Michael Whapples Date: Wed Aug 20 17:03:00 2014 UTCLog: Change printing of xpath messages to LOG_INFO as they do not really re...
http://code.google.com/p/liblouisutdml/source/detail?r=c1596626ddd0 ============================================================================== Revision: bda06edd8287 Branch: default Author: Michael Whapples Date: Wed Aug 20 16:30:55 2014 UTC Log: Add libxml indicator to libxml error messages http://code.google.com/p/liblouisutdml/source/detail?r=bda06edd8287 Modified: /liblouisutdml/liblouisutdml.c ======================================= --- /liblouisutdml/liblouisutdml.c Tue Jul 29 12:08:57 2014 UTC +++ /liblouisutdml/liblouisutdml.c Wed Aug 20 16:30:55 2014 UTC @@ -63,7 +63,7 @@ memset (buffer, 0, sizeof (buffer)); vsnprintf (buffer, sizeof (buffer) - 4, msg, args); va_end (args); - logMessage (LOG_ERROR, "%s", buffer); + logMessage (LOG_ERROR, "libxml: %s", buffer); } static xmlParserCtxt *ctxt; ============================================================================== Revision: c1596626ddd0 Branch: default Author: Michael Whapples Date: Wed Aug 20 17:03:00 2014 UTCLog: Change printing of xpath messages to LOG_INFO as they do not really represent errors, reverted prefixing libxml to libxml errors as that was not real cause.
http://code.google.com/p/liblouisutdml/source/detail?r=c1596626ddd0 Modified: /liblouisutdml/liblouisutdml.c /liblouisutdml/semantics.c ======================================= --- /liblouisutdml/liblouisutdml.c Wed Aug 20 16:30:55 2014 UTC +++ /liblouisutdml/liblouisutdml.c Wed Aug 20 17:03:00 2014 UTC @@ -63,7 +63,7 @@ memset (buffer, 0, sizeof (buffer)); vsnprintf (buffer, sizeof (buffer) - 4, msg, args); va_end (args); - logMessage (LOG_ERROR, "libxml: %s", buffer); + logMessage (LOG_ERROR, "%s", buffer); } static xmlParserCtxt *ctxt; ======================================= --- /liblouisutdml/semantics.c Wed Jul 30 15:29:24 2014 UTC +++ /liblouisutdml/semantics.c Wed Aug 20 17:03:00 2014 UTC @@ -1080,7 +1080,7 @@ int size; int i; size = (nodes) ? nodes->nodeNr : 0; - semanticError (NULL, "Result (%d nodes):", size); + logMessage (LOG_INFO, "Result (%d nodes):", size); for (i = 0; i < size; ++i) { if (nodes->nodeTab[i]->type == XML_NAMESPACE_DECL) @@ -1090,13 +1090,13 @@ cur = (xmlNodePtr) ns->next; if (cur->ns) { - semanticError (NULL, + logMessage (LOG_INFO, "= namespace \"%s\"=\"%s\" for node %s:%s", ns->prefix, ns->href, cur->ns->href, cur->name); } else { - semanticError (NULL, "= namespace \"%s\"=\"%s\" for node %s", + logMessage (LOG_INFO, "= namespace \"%s\"=\"%s\" for node %s", ns->prefix, ns->href, cur->name); } } @@ -1105,18 +1105,18 @@ cur = nodes->nodeTab[i]; if (cur->ns) { - semanticError (NULL, "= element node \"%s:%s\"", + logMessage (LOG_INFO, "= element node \"%s:%s\"", cur->ns->href, cur->name); } else { - semanticError (NULL, "= element node \"%s\"", cur->name); + logMessage (LOG_INFO, "= element node \"%s\"", cur->name); } } else { cur = nodes->nodeTab[i]; - semanticError (NULL, "= node \"%s\": type %d", cur->name, + logMessage (LOG_INFO, "= node \"%s\": type %d", cur->name, cur->type); } } For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com