fix up long types in printfs

from Clive Stubbings.
This commit is contained in:
Mariano Alvira 2010-03-15 07:24:48 -04:00
parent 44a1c7b1fb
commit 07e6b65182
2 changed files with 8 additions and 8 deletions

View file

@ -35,9 +35,9 @@ void dump_regs(uint32_t base, uint32_t len) {
printf("base +0 +4 +8 +c +10 +14 +18 +1c \n\r");
for (i = 0; i < len; i ++) {
if ((i & 7) == 0) {
printf("%02x",(uint32_t)(4 * i));
printf("%02lx",(uint32_t)(4 * i));
}
printf(" %08x",(uint32_t)*mem32(base+(4*i)));
printf(" %08lx",(uint32_t)*mem32(base+(4*i)));
if ((i & 7) == 7)
printf(NL);
}