mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Most stack straces don't need 3 digits worth of levels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab918103d2
commit
0b81e19d19
@ -209,7 +209,7 @@ static void PrintStackTrace(void *) {
|
||||
Dl_info dlinfo;
|
||||
dladdr(StackTrace[i], &dlinfo);
|
||||
|
||||
fprintf(stderr, "%-3d", i);
|
||||
fprintf(stderr, "%-2d", i);
|
||||
|
||||
const char* name = strrchr(dlinfo.dli_fname, '/');
|
||||
if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
|
||||
|
Loading…
Reference in New Issue
Block a user