diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-05-28 00:51:47 +0200 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-05-28 00:51:47 +0200 |
commit | 08f5224b1bf1293ab1d59fdfbf9045561733c38d (patch) | |
tree | d60a970c4c1c6a4eeeee76dfb7dd7af1e25d8233 /lib/unwarminder/backtrace.c | |
parent | 112b80b0c2f0ea27f16c23699867554f66c31938 (diff) | |
download | rockbox-08f5224b1bf1293ab1d59fdfbf9045561733c38d.tar.gz rockbox-08f5224b1bf1293ab1d59fdfbf9045561733c38d.zip |
Use shorter lines to show an ARM backtrace (so address fit on the clip zip screen)
Change-Id: Ib36c09a44230fbaaa119f756367f98bdc7756983
Diffstat (limited to 'lib/unwarminder/backtrace.c')
-rw-r--r-- | lib/unwarminder/backtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unwarminder/backtrace.c b/lib/unwarminder/backtrace.c index 294b7f66f4..47898a9054 100644 --- a/lib/unwarminder/backtrace.c +++ b/lib/unwarminder/backtrace.c | |||
@@ -77,7 +77,7 @@ static Boolean CliReport(void *data, Int32 address) | |||
77 | unsigned *line = (unsigned *)data; | 77 | unsigned *line = (unsigned *)data; |
78 | 78 | ||
79 | 79 | ||
80 | lcd_putsf(0, (*line)++, " %c: 0x%08x", | 80 | lcd_putsf(0, (*line)++, " %c: %08x", |
81 | (address & 0x1) ? 'T' : 'A', | 81 | (address & 0x1) ? 'T' : 'A', |
82 | address & (~0x1)); | 82 | address & (~0x1)); |
83 | lcd_update(); | 83 | lcd_update(); |
@@ -110,7 +110,7 @@ void backtrace(int pcAddr, int spAddr, unsigned *line) | |||
110 | { | 110 | { |
111 | UnwResult r; | 111 | UnwResult r; |
112 | 112 | ||
113 | lcd_putsf(0, (*line)++, "bt pc: 0x%08x, sp: 0x%08x", pcAddr, spAddr); | 113 | lcd_putsf(0, (*line)++, "bt pc: %08x, sp: %08x", pcAddr, spAddr); |
114 | lcd_update(); | 114 | lcd_update(); |
115 | 115 | ||
116 | r = UnwindStart(pcAddr, spAddr, &cliCallbacks, (void *)line); | 116 | r = UnwindStart(pcAddr, spAddr, &cliCallbacks, (void *)line); |