[llvm-commits] [llvm] r85575 - /llvm/trunk/lib/System/Unix/Signals.inc
Dan Gohman
gohman at apple.com
Thu Oct 29 19:45:10 PDT 2009
Author: djg
Date: Thu Oct 29 21:45:10 2009
New Revision: 85575
URL: http://llvm.org/viewvc/llvm-project?rev=85575&view=rev
Log:
Most stack straces don't need 3 digits worth of levels.
Modified:
llvm/trunk/lib/System/Unix/Signals.inc
Modified: llvm/trunk/lib/System/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Signals.inc?rev=85575&r1=85574&r2=85575&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Signals.inc (original)
+++ llvm/trunk/lib/System/Unix/Signals.inc Thu Oct 29 21:45:10 2009
@@ -209,7 +209,7 @@
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);
More information about the llvm-commits
mailing list