diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chdebug.c | 15 | ||||
-rw-r--r-- | src/include/debug.h | 1 |
2 files changed, 3 insertions, 13 deletions
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.
@@ -35,22 +35,13 @@ void chDbgInit(void) { }
/**
- * 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 */
|