diff options
Diffstat (limited to 'firmware/panic.c')
-rw-r--r-- | firmware/panic.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/firmware/panic.c b/firmware/panic.c index 7f8a08889e..2cb79b1e0c 100644 --- a/firmware/panic.c +++ b/firmware/panic.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | #include <stdarg.h> | 21 | #include <stdarg.h> |
22 | #include "panic.h" | 22 | #include "panic.h" |
23 | #include "drivers/lcd.h" | 23 | #include "lcd.h" |
24 | #include "debug.h" | 24 | #include "debug.h" |
25 | 25 | ||
26 | char panic_buf[128]; | 26 | char panic_buf[128]; |
@@ -28,18 +28,6 @@ char panic_buf[128]; | |||
28 | /* | 28 | /* |
29 | * "Dude. This is pretty fucked-up, right here." | 29 | * "Dude. This is pretty fucked-up, right here." |
30 | */ | 30 | */ |
31 | void panic( char *message ) | ||
32 | { | ||
33 | debug( message ); | ||
34 | |||
35 | /*lcd_string( message ); */ | ||
36 | |||
37 | while( 1 ); | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * "Dude. This is pretty fucked-up, right here." | ||
42 | */ | ||
43 | void panicf( char *fmt, ...) | 31 | void panicf( char *fmt, ...) |
44 | { | 32 | { |
45 | va_list ap; | 33 | va_list ap; |
@@ -48,5 +36,7 @@ void panicf( char *fmt, ...) | |||
48 | vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap ); | 36 | vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap ); |
49 | va_end( ap ); | 37 | va_end( ap ); |
50 | 38 | ||
51 | panic( panic_buf ); | 39 | lcd_puts(0,0,panic_buf); |
40 | DEBUGF(panic_buf); | ||
41 | while(1); | ||
52 | } | 42 | } |