From 34366d806d70184876ad7d195f21c7d4c257c778 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 27 Jan 2011 11:21:25 +0000 Subject: Remove debug output via printf. --- server/src/macrotool/export.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/src/macrotool/export.cc b/server/src/macrotool/export.cc index c9dcbd1..d7f3729 100644 --- a/server/src/macrotool/export.cc +++ b/server/src/macrotool/export.cc @@ -62,7 +62,7 @@ public: pos["patientid"] = 1; pos["time"] = 2; pos["template"] = 3; - + /* printf("%s\n", n.c_str()); size_t idx = 4; @@ -74,7 +74,7 @@ public: i++; } printf("\n"); - + */ output_header(); } @@ -181,7 +181,7 @@ static void export_prefix(std::string prefix) } templates_t t = scanfieldnames(filter); - + /* templates_t::iterator ti = t.begin(); while(ti != t.end()) { printf("%s\n", ti->first.c_str()); @@ -192,7 +192,7 @@ static void export_prefix(std::string prefix) } ti++; } - + */ { pqxx::result result = @@ -222,7 +222,8 @@ static void export_prefix(std::string prefix) timestr = timestr.substr(0, timestr.size() - 1); files[templ]->addcell("time", timestr.c_str()); - printf("%s %s %s\n", timestamp.c_str(), patientid.c_str(), templ.c_str()); + DEBUG(export, "%s %s %s\n", + timestamp.c_str(), patientid.c_str(), templ.c_str()); { pqxx::result result = -- cgit v1.2.3