ruby-changes:61381
From: Nobuyoshi <ko1@a...>
Date: Tue, 26 May 2020 16:58:59 +0900 (JST)
Subject: [ruby-changes:61381] 04eb05a8e0 (master): Prefer configured printf format for mingw gcc 10
https://git.ruby-lang.org/ruby.git/commit/?id=04eb05a8e0 From 04eb05a8e0456ee00fa7443803283b78337d6515 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 26 May 2020 13:07:30 +0900 Subject: Prefer configured printf format for mingw gcc 10 diff --git a/vm_dump.c b/vm_dump.c index 2ef08ee..5b65860 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -726,7 +726,7 @@ dump_thread(void *arg) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L726 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/