From 32367156c62c1104a500c0f14d31a84c0a542cdc Mon Sep 17 00:00:00 2001 From: hadashiA Date: Sat, 1 Jun 2019 03:24:39 +0900 Subject: [PATCH] Add log format special char %i (thread-id) to "human readable" mode (#1583) --- MagickCore/log.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MagickCore/log.c b/MagickCore/log.c index f75191c34..e7da07627 100644 --- a/MagickCore/log.c +++ b/MagickCore/log.c @@ -1033,6 +1033,7 @@ static char *TranslateEvent(const char *module,const char *function, %e event %f function %g generation + %i thread id %l line %m module %n log name @@ -1097,6 +1098,11 @@ static char *TranslateEvent(const char *module,const char *function, log_info->generations)); break; } + case 'i': + { + q += FormatLocaleString(q, extent, "%.20g", (double) GetMagickThreadSignature()); + break; + } case 'l': { q+=FormatLocaleString(q,extent,"%.20g",(double) line); -- 2.50.1