Everything happens now in the same pid name space. Thread numbers
change, but thread names are more descriptive than numbers.
Remove the pid number and put the thread name inside the bracets.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
pthread_getname_np(pthread_self(), thread_name, sizeof(thread_name));
ret = snprintf(all_trace, sizeof(all_trace),
- "%s%s [%5d] %s %s:%d %s %s",
+ "%s%s [%s] %s:%d %s %s",
color_str, time,
- getpid(),
thread_name,
file, line, normal_color, trace);