debug: Fix broken format specifiers

This commit is contained in:
Martin Fleisz 2018-03-06 16:32:36 +01:00
parent ffa5fb07c2
commit 900aa94796

View File

@ -424,10 +424,10 @@ char** winpr_backtrace_symbols(void* buffer, size_t* used)
if (SymGetLineFromAddr64(process, address, &displacement, line))
{
sprintf_s(vlines[i], line_len, "%08lX: %s in %s:%lu", symbol->Address, symbol->Name, line->FileName, line->LineNumber);
sprintf_s(vlines[i], line_len, "%016"PRIx64": %s in %s:%"PRIu32, symbol->Address, symbol->Name, line->FileName, line->LineNumber);
}
else
sprintf_s(vlines[i], line_len, "%08lX: %s", symbol->Address, symbol->Name);
sprintf_s(vlines[i], line_len, "%016"PRIx64": %s", symbol->Address, symbol->Name);
}
if (used)