aboutsummaryrefslogtreecommitdiffstats
path: root/src/chdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chdebug.c')
-rw-r--r--src/chdebug.c15
1 files changed, 3 insertions, 12 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();
}