1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Björn Stenberg 2002-05-02 14:05:51 +00:00
parent bca0f0f5ea
commit 697dd70ac4
10 changed files with 123 additions and 129 deletions

View file

@ -20,23 +20,11 @@
#include <stdio.h>
#include <stdarg.h>
#include "panic.h"
#include "drivers/lcd.h"
#include "lcd.h"
#include "debug.h"
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."
*/
@ -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);
}