summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-05-06 19:28:12 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-05-06 19:28:12 +0000
commitadb506df14aded06ed6e9ebf8540e6fd383ffd6a (patch)
tree32cbbb924ad396dfaa7b7eab7f146fb30f41b49e /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parentb753447a069c924b8604f2436039f959c446442b (diff)
downloadrockbox-adb506df14aded06ed6e9ebf8540e6fd383ffd6a.tar.gz
rockbox-adb506df14aded06ed6e9ebf8540e6fd383ffd6a.tar.bz2
rockbox-adb506df14aded06ed6e9ebf8540e6fd383ffd6a.zip
Ingenic Jz4740: Use lcd_putsf() instead of lcd_puts() in exception handler
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25849 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index ce02a2539d..c90decc3b6 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -255,7 +255,6 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
(void)epc;
/* Depends on crt0.S ! */
- char buffer[LCD_WIDTH/SYSFONT_WIDTH];
char *registers[] = { "ra", "fp", "gp", "t9", "t8", "s7", "s6", "s5", "s4",
"s3", "s2", "s1", "s0", "t7", "t6", "t5", "t4", "t3",
"t2", "t1", "t0", "a3", "a2", "a1", "a0", "v1", "v0",
@@ -275,14 +274,12 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
lcd_clear_display();
_backlight_on();
- snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc);
lcd_puts(0, 0, parse_exception(cause));
- lcd_puts(0, 1, buffer);
+ lcd_putsf(0, 1, "0x%08x at 0x%08x", read_c0_badvaddr(), epc);
for(i=0; i< 0x80/4; i+=2)
{
unsigned int* ptr = (unsigned int*)(stack_ptr + i*4);
- snprintf(buffer, sizeof(buffer), "%s: 0x%08x %s: 0x%08x", registers[i], *ptr, registers[i+1], *(ptr+1));
- lcd_puts(0, 3 + i/2, buffer);
+ lcd_putsf(0, 3 + i/2, "%s: 0x%08x %s: 0x%08x", registers[i], *ptr, registers[i+1], *(ptr+1));
}
lcd_update();