aboutsummaryrefslogtreecommitdiffstats
path: root/src/chdebug.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-27 16:02:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-27 16:02:12 +0000
commit6f0569444dafdae8b367a54a07a4bfaf3675f545 (patch)
tree8d43ced8b892c95b243546fe2220e940be75affa /src/chdebug.c
parentb74cb5bc1a144b1890e229cd1fc165ece4f10325 (diff)
downloadChibiOS-6f0569444dafdae8b367a54a07a4bfaf3675f545.tar.gz
ChibiOS-6f0569444dafdae8b367a54a07a4bfaf3675f545.tar.bz2
ChibiOS-6f0569444dafdae8b367a54a07a4bfaf3675f545.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@117 35acf78f-673a-0410-8e92-d51de3d6d3f4
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();
}