From adb506df14aded06ed6e9ebf8540e6fd383ffd6a Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 6 May 2010 19:28:12 +0000 Subject: 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 --- firmware/target/mips/ingenic_jz47xx/system-jz4740.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'firmware/target') 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(); -- cgit v1.2.3