summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-05-02 14:05:51 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-05-02 14:05:51 +0000
commit697dd70ac4832243f6460452f955d19da56ba590 (patch)
tree6efaf5db0ee2554a4f9daf4e02c1a4c9736c9c33 /firmware/panic.c
parentbca0f0f5ea8bb29d503a917eb4ef467202c7318c (diff)
downloadrockbox-697dd70ac4832243f6460452f955d19da56ba590.tar.gz
rockbox-697dd70ac4832243f6460452f955d19da56ba590.tar.bz2
rockbox-697dd70ac4832243f6460452f955d19da56ba590.zip
Changed debug to DEBUGF and panic to panicf.
Also some linking changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c18
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 @@
#include <stdio.h>
#include <stdarg.h>
#include "panic.h"
-#include "drivers/lcd.h"
+#include "lcd.h"
#include "debug.h"
char panic_buf[128];
@@ -28,18 +28,6 @@ char panic_buf[128];
/*
* "Dude. This is pretty fucked-up, right here."
*/
-void panic( char *message )
-{
- debug( message );
-
- /*lcd_string( message ); */
-
- while( 1 );
-}
-
-/*
- * "Dude. This is pretty fucked-up, right here."
- */
void panicf( char *fmt, ...)
{
va_list ap;
@@ -48,5 +36,7 @@ void panicf( char *fmt, ...)
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap );
- panic( panic_buf );
+ lcd_puts(0,0,panic_buf);
+ DEBUGF(panic_buf);
+ while(1);
}