From: hadashiA Date: Fri, 31 May 2019 18:24:39 +0000 (+0900) Subject: Add log format special char %i (thread-id) to "human readable" mode (#1583) X-Git-Tag: 7.0.8-48~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32367156c62c1104a500c0f14d31a84c0a542cdc;p=imagemagick Add log format special char %i (thread-id) to "human readable" mode (#1583) --- 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);