}
LOG(2, (stderr, "%d: started thread [tid=%jd,index=%zu]\n",
- proc->pid, (intmax_t) th->tid, th->index));
+ proc->pid, (intmax_t) (intptr_t) th->tid, th->index));
index += nobjects;
ncreated++;
}
}
LOG(2, (stderr, "%d: thread exited [tid=%jd,return=%d]\n",
- proc->pid, (intmax_t) th->tid, th->retval));
+ proc->pid, (intmax_t) (intptr_t) th->tid, th->retval));
}
free(threads);
fprintf(stderr, " uuid: <%s>\n", p);
fprintf(stderr, " idx: %zu\n", obj->idx);
fprintf(stderr, " process: %d\n", (int) obj->pid);
- fprintf(stderr, " thread: %jd\n", (intmax_t) obj->tid);
+ fprintf(stderr, " thread: %jd\n", (intmax_t) (intptr_t) obj->tid);
fprintf(stderr, "}\n");
}