#ifdef DEBUG
fprintf(stderr, "%-12s:%-4d ", file, line);
#endif
- fprintf(stderr, "[%s] [%d] ", level_string, (int)pthread_self());
+ fprintf(stderr, "[%s] [%ld] ", level_string, (long)pthread_self());
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);