From 00490757ed8bf0945e0aa88e472a87f21f18bbb5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 17:21:52 +0100 Subject: Use hugin instead of printf for debug output. --- src/saxparser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 #include +#include 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)), -- cgit v1.2.3