mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
Don't use plain %x to print pointer values. I had changed it from %p
since %p isn't formatted consistently, but obviously plain %x is wrong. PRIxPTR with a cast to uintptr_t would work here, but that requires inconvenient build-system changes. %lu works on all current and foreseable future hosts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b954815e1
commit
dd17b25611
@ -97,7 +97,8 @@ static void PrintStackTrace() {
|
|||||||
if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
|
if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
|
||||||
else fprintf(stderr, " %-*s", width, name+1);
|
else fprintf(stderr, " %-*s", width, name+1);
|
||||||
|
|
||||||
fprintf(stderr, " %#0*x", (int)(sizeof(void*) * 2) + 2, StackTrace[i]);
|
fprintf(stderr, " %#0*lx",
|
||||||
|
(int)(sizeof(void*) * 2) + 2, (unsigned long)StackTrace[i]);
|
||||||
|
|
||||||
if (dlinfo.dli_sname != NULL) {
|
if (dlinfo.dli_sname != NULL) {
|
||||||
int res;
|
int res;
|
||||||
|
Loading…
Reference in New Issue
Block a user