diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:21:52 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:21:52 +0100 |
commit | 00490757ed8bf0945e0aa88e472a87f21f18bbb5 (patch) | |
tree | f5d9dca9f459608511f51ccf605bccd38efc2a0d /src | |
parent | bf6eb9d1558be209a5dd41740f23873643794a3a (diff) |
Use hugin instead of printf for debug output.
Diffstat (limited to 'src')
-rw-r--r-- | src/saxparser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/saxparser.cc b/src/saxparser.cc index b6bfa7c..46a0f9d 100644 --- a/src/saxparser.cc +++ b/src/saxparser.cc @@ -28,6 +28,7 @@ #include <stdio.h> #include <string.h> +#include <hugin.hpp> static void character_hndl(void *p, const XML_Char *s, int len) { @@ -87,6 +88,8 @@ SAXParser::~SAXParser() int SAXParser::parse() { + DEBUG(sax, "parse()\n"); + char buf[32]; int len; @@ -110,6 +113,8 @@ int SAXParser::parse() int SAXParser::parse(std::string buffer) { + DEBUG(sax, "parse(buffer %d bytes)\n", buffer.length()); + if(!XML_Parse(p, buffer.c_str(), buffer.length(), true)) { parseError((char*)buffer.c_str(), buffer.length(), XML_ErrorString(XML_GetErrorCode(p)), |