Ignore:
Timestamp:
Nov 29, 2013, 2:06:55 AM (7 years ago)
Author:
cal@…
Message:

darwintrace: print thread ID when debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwintracelib1.0/darwintrace.h

    r113026 r114095  
    5959#       define debug_printf(format, ...) \
    6060                if (__darwintrace_stderr != NULL) { \
    61                         fprintf(__darwintrace_stderr, "darwintrace[%d]: " format, getpid(), __VA_ARGS__); \
     61                        fprintf(__darwintrace_stderr, "darwintrace[%d:%p]: " format, getpid(), (void *) pthread_self(), __VA_ARGS__); \
    6262                        fflush(__darwintrace_stderr); \
    6363                }
Note: See TracChangeset for help on using the changeset viewer.