char buf[8096];
BackTrace *bt = new BackTrace(1);
snprintf(buf, sizeof(buf),
- "%s: In function '%s', in thread '%p'\n"
+ "%s: In function '%s', in thread '%llx'\n"
"%s: %d: FAILED assert(%s)\n",
- file, func, (void*)pthread_self(), file, line, assertion);
+ file, func, (unsigned long long)pthread_self(), file, line, assertion);
dout_emergency(buf);
// TODO: get rid of this memory allocation.
{
char buf[1024];
snprintf(buf, sizeof(buf), "*** Caught signal (%s) **\n "
- "in thread %p. Shutting down.\n",
- sys_siglist[signum], (void*)pthread_self());
+ "in thread %llx. Shutting down.\n",
+ sys_siglist[signum], (unsigned long long)pthread_self());
dout_emergency(buf);
pidfile_remove();
reraise_fatal(signum);
// presumably dump core-- will handle it.
char buf[1024];
snprintf(buf, sizeof(buf), "*** Caught signal (%s) **\n "
- "in thread %p\n", sys_siglist[signum], (void*)pthread_self());
+ "in thread %llx\n", sys_siglist[signum], (unsigned long long)pthread_self());
dout_emergency(buf);
pidfile_remove();