summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-12 19:15:05 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-12 19:15:08 +0100
commitfa592cc7255a91715b5bd91a3a003b848bcba5f2 (patch)
tree793878302110da23c969fa3aed8180ec1b13da6e /lib
parent1589b28afca9a8193258ad73a8847ceb952d3e0f (diff)
downloadrockbox-fa592cc7255a91715b5bd91a3a003b848bcba5f2.tar.gz
rockbox-fa592cc7255a91715b5bd91a3a003b848bcba5f2.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/unwarminder/unwarm_arm.c4
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)
if(shiftDist)
{
- UnwPrintd3("%s #%d",
+ UnwPrintd3("%s #%u",
shiftMnu[shiftType], shiftDist);
}
UnwPrintd3("\t; r%d %s", rm, M_Origin2Str(state->regData[rm].o));
@@ -618,7 +618,7 @@ UnwResult UnwStartArm(UnwState * const state)
}
}
- UnwPrintd2(" R%d = 0x%08x\n", r);
+ UnwPrintd2(" R%d = 0x%08x\n", r, state->regData[r].v);
}
if(!P) addr += U ? 4 : -4;