From 6f0569444dafdae8b367a54a07a4bfaf3675f545 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 27 Nov 2007 16:02:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@117 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chdebug.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/chdebug.c') diff --git a/src/chdebug.c b/src/chdebug.c index 29e855e9c..211e1de33 100644 --- a/src/chdebug.c +++ b/src/chdebug.c @@ -21,7 +21,7 @@ #ifdef CH_USE_DEBUG -char *dbglastmsg; +char *panicmsg; /** * Debug subsystem initialization. @@ -34,23 +34,14 @@ void chDbgInit(void) { #endif } -/** - * Prints a message on the console/debugger. The latest message pointer - * is retained. - */ -void chDbgPuts(char *msg) { - - dbglastmsg = msg; - chSysPuts(msg); -} - /** * Prints a panic message on the console/debugger and then halts the system. */ void chDbgPanic(char *msg) { + panicmsg = msg; chSysPuts("PANIC: "); - chDbgPuts(msg); + chSysPuts(msg); chSysHalt(); } -- cgit v1.2.3