diff options
author | Thomas Jarosch <tomj@simonv.com> | 2015-01-12 19:15:05 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2015-01-12 19:15:08 +0100 |
commit | fa592cc7255a91715b5bd91a3a003b848bcba5f2 (patch) | |
tree | 793878302110da23c969fa3aed8180ec1b13da6e | |
parent | 1589b28afca9a8193258ad73a8847ceb952d3e0f (diff) | |
download | rockbox-fa592cc7255a91715b5bd91a3a003b848bcba5f2.tar.gz rockbox-fa592cc7255a91715b5bd91a3a003b848bcba5f2.zip |
ARM unwinder: Add missing 'register' variable in debug output
Also fix a wrong format specifier for an unsigned variable.
Detected by cppcheck, patch submitted upstream.
Change-Id: I9b84d91eeb242ed77b53ecc16252c5b35190bb9f
-rw-r--r-- | lib/unwarminder/unwarm_arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unwarminder/unwarm_arm.c b/lib/unwarminder/unwarm_arm.c index 0c41c05919..5d2b8cc044 100644 --- a/lib/unwarminder/unwarm_arm.c +++ b/lib/unwarminder/unwarm_arm.c | |||
@@ -308,7 +308,7 @@ UnwResult UnwStartArm(UnwState * const state) | |||
308 | 308 | ||
309 | if(shiftDist) | 309 | if(shiftDist) |
310 | { | 310 | { |
311 | UnwPrintd3("%s #%d", | 311 | UnwPrintd3("%s #%u", |
312 | shiftMnu[shiftType], shiftDist); | 312 | shiftMnu[shiftType], shiftDist); |
313 | } | 313 | } |
314 | UnwPrintd3("\t; r%d %s", rm, M_Origin2Str(state->regData[rm].o)); | 314 | UnwPrintd3("\t; r%d %s", rm, M_Origin2Str(state->regData[rm].o)); |
@@ -618,7 +618,7 @@ UnwResult UnwStartArm(UnwState * const state) | |||
618 | } | 618 | } |
619 | } | 619 | } |
620 | 620 | ||
621 | UnwPrintd2(" R%d = 0x%08x\n", r); | 621 | UnwPrintd2(" R%d = 0x%08x\n", r, state->regData[r].v); |
622 | } | 622 | } |
623 | 623 | ||
624 | if(!P) addr += U ? 4 : -4; | 624 | if(!P) addr += U ? 4 : -4; |