From 27791bc065b959f1f3995ae24d3bdb168c252113 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 26 Feb 2014 15:01:29 +0100 Subject: Fix 64bit compilation --- server/src/pracrodaopgsql.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/src/pracrodaopgsql.cc b/server/src/pracrodaopgsql.cc index 2192031..aa1c8bd 100644 --- a/server/src/pracrodaopgsql.cc +++ b/server/src/pracrodaopgsql.cc @@ -112,10 +112,10 @@ void PracroDAOPgsql::commitTransaction(std::string sessionid, Macro &_macro, time_t now) { - DEBUG(db, "commitTransaction (%s, %s, %s, <%u fields>, %ld)\n", + DEBUG(db, "commitTransaction (%s, %s, %s, <%d fields>, %u)\n", transaction.user.c_str(), transaction.patientid.c_str(), _macro.name.c_str(), - commit.fields.size(), now); + (int)commit.fields.size(), (unsigned int)now); if(!conn) { ERR(db, "No pgsql connection\n"); @@ -198,7 +198,7 @@ void PracroDAOPgsql::commitTransaction(std::string sessionid, R = W.exec(ts); DEBUG(db, "input fields: %d, output fields: %d\n", - commit.fields.size(), (int)R.size()); + (int)commit.fields.size(), (int)R.size()); // Store known fields result_t::const_iterator ri = R.begin(); @@ -250,10 +250,10 @@ Values PracroDAOPgsql::getLatestValues(std::string sessionid, bool uncom = false; // get results that are not yet committed? - DEBUG(db, "(%s, %s, <%u fieldnames>, %ld)\n", + DEBUG(db, "(%s, %s, <%d fieldnames>, %u)\n", patientid.c_str(), macro ? macro->name.c_str() : "(null)", - fieldnames.size(), oldest); + (int)fieldnames.size(), (unsigned int)oldest); std::string query; std::stringstream soldest; soldest << oldest; -- cgit v1.2.3