From 551d4aa1be9f4d256df3fadca9a005a0f316adf8 Mon Sep 17 00:00:00 2001 From: bertho Date: Thu, 5 Feb 2009 01:26:26 +0000 Subject: Add a flexible debug interface. Please read the documentation. --- server/src/widgetgenerator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/widgetgenerator.cc') diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc index 58f2992..2e51b32 100644 --- a/server/src/widgetgenerator.cc +++ b/server/src/widgetgenerator.cc @@ -24,6 +24,7 @@ * along with Pracro; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include "debug.h" #include "widgetgenerator.h" #include "configuration.h" @@ -54,7 +55,7 @@ static std::string automap(std::string name) "end\n" "return value, timestamp\n"; - printf("Automap:\n%s\n", automapstring.c_str()); + PRACRO_DEBUG(widget, "Automap:\n%s\n", automapstring.c_str()); return automapstring; } -- cgit v1.2.3