diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-05 23:39:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-05 23:39:24 +0000 |
commit | 35e2cfccafd00304507e3f99ec3ecfa6168326a7 (patch) | |
tree | e0461a0c339476c1fe3693cf0a01e9c8568a78da /llvm/lib/System/Unix | |
parent | 4619e439b64a251fe35f7a5821aa90d78b879fa9 (diff) | |
download | bcm5719-llvm-35e2cfccafd00304507e3f99ec3ecfa6168326a7.tar.gz bcm5719-llvm-35e2cfccafd00304507e3f99ec3ecfa6168326a7.zip |
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.
llvm-svn: 60616
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Signals.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc index abb6a336377..9c1050cf8a0 100644 --- a/llvm/lib/System/Unix/Signals.inc +++ b/llvm/lib/System/Unix/Signals.inc @@ -97,7 +97,8 @@ static void PrintStackTrace() { if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname); 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) { int res; |