mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
Avoid %z
format
This format is not supported by MSVC runtimes targeted by the mingw-64 toolchain. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
2c40e0d02f
commit
11cab6a0c0
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ void _mi_fprintf( mi_output_fun* out, void* arg, const char* fmt, ... ) {
|
||||||
static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) {
|
static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) {
|
||||||
if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) {
|
if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) {
|
||||||
char tprefix[64];
|
char tprefix[64];
|
||||||
snprintf(tprefix, sizeof(tprefix), "%sthread 0x%zx: ", prefix, _mi_thread_id());
|
snprintf(tprefix, sizeof(tprefix), "%sthread 0x%llx: ", prefix, (unsigned long long)_mi_thread_id());
|
||||||
mi_vfprintf(out, arg, tprefix, fmt, args);
|
mi_vfprintf(out, arg, tprefix, fmt, args);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue