From b776b00a67d782c0f174c4daeba940c7db4a9f51 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 7 Dec 2023 16:10:52 +1100 Subject: [PATCH] [common] host: fix compliation on windows --- common/src/platform/windows/crash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/platform/windows/crash.c b/common/src/platform/windows/crash.c index d7160692..50c65321 100644 --- a/common/src/platform/windows/crash.c +++ b/common/src/platform/windows/crash.c @@ -128,8 +128,9 @@ static LONG CALLBACK exception_filter(EXCEPTION_POINTERS * exc) DWORD lineDisp; if (SymGetLineFromAddr64(hProcess, frame.AddrPC.Offset, &lineDisp, &line)) - DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64 " (%s:%ld+0x%lx)", i, moduleName, symbol->Name, disp, - line.FileName, line.LineNumber, lineDisp); + DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64 " (%s:%" PRIx64 "+0x%" PRIx64 ")", + i, moduleName, symbol->Name, disp, line.FileName, + (uint64_t)line.LineNumber, (uint64_t)lineDisp); else DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64, i, moduleName, symbol->Name, disp); }