Commit ea89e059 authored by Ludovic Rousseau's avatar Ludovic Rousseau

log: on GNU/Linux a pthread_t is unsigned

Do not log the thread id as a signed integer.
We should not have logs like:
00000012 [-1211058432] pcscdaemon.c:352:main() Force colored logs
parent 9d5572b8
......@@ -190,7 +190,7 @@ static void log_line(const int priority, const char *DebugBuffer)
#ifdef __APPLE__
#define THREAD_FORMAT "%p"
#else
#define THREAD_FORMAT "%ld"
#define THREAD_FORMAT "%lu"
#endif
printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s\n",
time_pfx, delta, time_sfx, thread_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment