1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefer configured printf format for mingw gcc 10

This commit is contained in:
Nobuyoshi Nakada 2020-05-26 13:07:30 +09:00
parent d63bba1e24
commit 04eb05a8e0
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -726,7 +726,7 @@ dump_thread(void *arg)
if (pSymFromAddr(ph, addr, &displacement, info)) {
if (GetModuleFileName((HANDLE)(uintptr_t)pSymGetModuleBase64(ph, addr), libpath, sizeof(libpath)))
fprintf(stderr, "%s", libpath);
fprintf(stderr, "(%s+0x%I64x)",
fprintf(stderr, "(%s+0x%"PRI_64_PREFIX"x)",
info->Name, displacement);
}
fprintf(stderr, " [0x%p]", (void *)(VALUE)addr);