diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-27 16:02:12 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-27 16:02:12 +0000 |
commit | 6f0569444dafdae8b367a54a07a4bfaf3675f545 (patch) | |
tree | 8d43ced8b892c95b243546fe2220e940be75affa /src/chdebug.c | |
parent | b74cb5bc1a144b1890e229cd1fc165ece4f10325 (diff) | |
download | ChibiOS-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.c | 15 |
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();
}
|