summaryrefslogtreecommitdiff
path: root/native/ctsvc_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'native/ctsvc_sqlite.c')
-rwxr-xr-xnative/ctsvc_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/ctsvc_sqlite.c b/native/ctsvc_sqlite.c
index 5805acd..92dcf67 100755
--- a/native/ctsvc_sqlite.c
+++ b/native/ctsvc_sqlite.c
@@ -46,11 +46,11 @@ static __thread sqlite3 *ctsvc_db = NULL;
static inline int __ctsvc_db_busyhandler(void *pData, int count)
{
if(10 - count > 0) {
- CTS_DBG("Busy Handler Called! : PID(%d) / CNT(%d)\n", getpid(), count+1);
+ CTS_ERR("Busy Handler Called! : Thread(%08x) / CNT(%d)\n", pthread_self(), count+1);
usleep(20000);
return 1;
} else {
- CTS_DBG("Busy Handler will be returned SQLITE_BUSY error : PID(%d) \n", getpid());
+ CTS_ERR("Busy Handler will be returned SQLITE_BUSY error : Thread(%08x) \n", pthread_self());
return 0;
}
}