medfall

Log | Files | Refs

commit 62cf86265fe52cfe7d54a3cccceb7aef40c6788f
parent 77d73cd98ac2b500879762d27efa1499c1451434
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue May  9 00:27:27 +0300

Proper address formatting in win32_backtrace.h

Diffstat:
win32_backtrace.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32_backtrace.h b/win32_backtrace.h @@ -27,10 +27,10 @@ inline void print_backtrace() { BOOL has_file_info = SymGetLineFromAddr64( process, addr64, &col, &line ); if( has_file_info ) { - printf( "%s (%s:%d - 0x%l64x)\n", symbol->Name, line.FileName, line.LineNumber, symbol->Address ); + printf( "%s (%s:%d - 0x%08lx)\n", symbol->Name, line.FileName, line.LineNumber, symbol->Address ); } else { - printf( "%s (0x%l64x)\n", symbol->Name, symbol->Address ); + printf( "%s (0x%08lx)\n", symbol->Name, symbol->Address ); } } }