Use proper string formats

This commit is contained in:
Gregory Burd 2011-12-04 15:16:54 -05:00
parent 3d7a6e41c6
commit 1f7ca0c189

View file

@ -378,7 +378,7 @@ void bdberl_tpool_thread_id(DB_ENV *env, pid_t *pid, db_threadid_t *tid)
char *bdberl_tpool_thread_id_string(DB_ENV *dbenv, pid_t pid, db_threadid_t tid, char *buf)
{
snprintf(buf, DB_THREADID_STRLEN, "[pid:%08X/tid:%08X]", (unsigned int)pid, (unsigned int)tid);
snprintf(buf, DB_THREADID_STRLEN, "%d/%p", pid, tid);
return buf;
}