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 +++------------ src/include/debug.h | 1 - 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'src') 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(); } diff --git a/src/include/debug.h b/src/include/debug.h index bf5b3ee7d..f5aed7ffe 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -61,7 +61,6 @@ extern "C" { #else /* CH_USE_DEBUG */ #define chDbgInit() -#define chDbgPuts(msg) {} #define chDbgPanic(msg) {} #endif /* CH_USE_DEBUG */ -- cgit v1.2.3