diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/pracrodaopgsql.cc | 10 |
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; |