Skip to content

Commit

Permalink
SOFTHSM-70: Remove printf from code
Browse files Browse the repository at this point in the history
  • Loading branch information
bellgrim committed Feb 12, 2014
1 parent 679e5a2 commit 497deef
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/lib/object_store/DB.cpp
Expand Up @@ -66,7 +66,6 @@ void DB::initialize()
// Call once at process termination
void DB::shutdown()
{
printf("\nsqlite3 memory still in use: %lld\n", sqlite3_memory_used());
sqlite3_shutdown();
}

Expand Down Expand Up @@ -237,14 +236,7 @@ class DB::Handle {
reportError(_stmt);
return Statement::ReturnCodeError;
}
#if 0
#if HAVE_SQL_TRACE
if (rv == SQLITE_ROW)
printf("SQLITE_ROW\n");
else
printf("SQLITE_DONE\n");
#endif
#endif

if (rv==SQLITE_ROW)
{
return Statement::ReturnCodeRow;
Expand Down Expand Up @@ -493,8 +485,6 @@ time_t DB::Result::getDatetime(unsigned int fieldidx)
const unsigned char *value = sqlite3_column_text(_handle->_stmt, fieldidx-1);
int valuelen = sqlite3_column_bytes(_handle->_stmt, fieldidx-1);

// printf("datetime:%s\n",value);

unsigned long years,mons,days,hours,mins,secs;
struct tm gm_tm = {0,0,0,0,0,0,0,0,0,0,0};
gm_tm.tm_isdst = 0; // Tell mktime not to take dst into account.
Expand Down Expand Up @@ -770,7 +760,7 @@ DB::Statement DB::Connection::prepare(const std::string &format, ...){
va_end(args);
if (cneeded<0) {
DB::logError("Connection::prepare: vsnprintf encoding error");
return Statement();
return Statement();
}
if (((size_t)cneeded)>=sizeof(statement)) {
// long form
Expand Down

0 comments on commit 497deef

Please sign in to comment.