summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-02-26 15:01:29 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2014-02-26 15:01:29 +0100
commit27791bc065b959f1f3995ae24d3bdb168c252113 (patch)
tree13f6f364c4ca744d9fbbd63315c7bd2ddfd1b5f7
parent070d2c7d55af1cac5f1c7b55186cb7cb3f69dab1 (diff)
Fix 64bit compilation
-rw-r--r--server/src/pracrodaopgsql.cc10
1 files changed, 5 insertions, 5 deletions
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;