summaryrefslogtreecommitdiff
path: root/server/src/macrolist.cc
diff options
context:
space:
mode:
authordeva <deva>2009-07-29 07:25:25 +0000
committerdeva <deva>2009-07-29 07:25:25 +0000
commitab96caac3c631ca452b21a0529372f1165638002 (patch)
tree40c385fde66904abf19555df375b5c88f0efe633 /server/src/macrolist.cc
parent2da1fd29b11d9b069d7783a37e2718023850462b (diff)
Split up commits and requests to seperate functions. Changed Database * to Database &
Diffstat (limited to 'server/src/macrolist.cc')
-rw-r--r--server/src/macrolist.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/macrolist.cc b/server/src/macrolist.cc
index f067fb1..e8bc507 100644
--- a/server/src/macrolist.cc
+++ b/server/src/macrolist.cc
@@ -75,10 +75,10 @@ std::string MacroList::getLatestVersion(std::string macro) throw(Exception)
if(find(macro) == end()) throw Exception("Macro ["+macro+"] does not exist");
MacroListItem mli = (*this)[macro];
if(mli.size() == 0) return "";
- printf("Search for %s - found %s v%s\n",
- macro.c_str(),
- (macropath + "/" + mli.begin()->second).c_str(),
- ((std::string)mli.begin()->first).c_str());
+ PRACRO_DEBUG(macrolist, "Search for %s - found %s v%s\n",
+ macro.c_str(),
+ (macropath + "/" + mli.begin()->second).c_str(),
+ ((std::string)mli.begin()->first).c_str());
return macropath + "/" + mli.begin()->second;
}