From fbba835d7efaa4ee1d28bf5c7e2232e53d84af5e Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 5 Jul 2010 09:01:54 +0000 Subject: Remove PRACRO_ prefix from debug macros. --- server/src/queryresult.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'server/src/queryresult.h') diff --git a/server/src/queryresult.h b/server/src/queryresult.h index de95a49..f734303 100644 --- a/server/src/queryresult.h +++ b/server/src/queryresult.h @@ -41,18 +41,21 @@ public: std::map< std::string, QueryResult > groups; void print(std::string tabs = "") { - PRACRO_DEBUG(queryhandler,"%sTimestamp: %d\n", tabs.c_str(), (int)timestamp); - PRACRO_DEBUG(queryhandler,"%sSource: %s\n", tabs.c_str(), source.c_str()); - PRACRO_DEBUG(queryhandler,"%sValues:\n", tabs.c_str()); - for(std::map< std::string, std::string >::iterator i = values.begin(); i != values.end(); i++) { - PRACRO_DEBUG(queryhandler,"%s[%s] => [%s]\n", tabs.c_str(), i->first.c_str(), i->second.c_str()); + DEBUG(queryhandler,"%sTimestamp: %d\n", tabs.c_str(), (int)timestamp); + DEBUG(queryhandler,"%sSource: %s\n", tabs.c_str(), source.c_str()); + DEBUG(queryhandler,"%sValues:\n", tabs.c_str()); + for(std::map< std::string, std::string >::iterator i = values.begin(); + i != values.end(); i++) { + DEBUG(queryhandler,"%s[%s] => [%s]\n", + tabs.c_str(), i->first.c_str(), i->second.c_str()); } - PRACRO_DEBUG(queryhandler,"%s{\n", tabs.c_str()); - for(std::map< std::string, QueryResult >::iterator i = groups.begin(); i != groups.end(); i++) { - PRACRO_DEBUG(queryhandler,"%s[%s] =>:\n", tabs.c_str(), i->first.c_str()); + DEBUG(queryhandler,"%s{\n", tabs.c_str()); + for(std::map< std::string, QueryResult >::iterator i = groups.begin(); + i != groups.end(); i++) { + DEBUG(queryhandler,"%s[%s] =>:\n", tabs.c_str(), i->first.c_str()); i->second.print(tabs +" "); } - PRACRO_DEBUG(queryhandler,"%s}\n", tabs.c_str()); + DEBUG(queryhandler,"%s}\n", tabs.c_str()); } }; -- cgit v1.2.3