[core] change backtrace format to put addr first

(better monospaced alignment of frame num, addr, offset, name)
personal/stbuehler/tests-path
Glenn Strauss 2021-08-29 21:07:20 -04:00
parent 84ff9ac9c9
commit ec88f62b5a
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ ck_backtrace (FILE *fp)
}
}
fprintf(fp, "%u: %s (+0x%x) [%p]\n",
frame, name, (unsigned int)offset, (void *)(uintptr_t)ip);
fprintf(fp, "%.2u: [%.012lx] (+%04x) %s\n",
frame, (uintptr_t)ip, (unsigned int)offset, name);
}
if (0 == rc)
return;