Fixed bug 2731661.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@870 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2009-04-04 17:37:21 +00:00
parent 00e59b6eb2
commit edb602cdbe
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void trace_init(void) {
void chDbgTrace(Thread *otp, Thread *ntp) {
trace_buffer.tb_ptr->cse_wtobjp = otp->p_wtobjp;
trace_buffer.tb_ptr->cse_time = chSysGetTime();
trace_buffer.tb_ptr->cse_time = chTimeNow();
trace_buffer.tb_ptr->cse_state = otp->p_state;
trace_buffer.tb_ptr->cse_tid = (unsigned)ntp >> 4;
if (++trace_buffer.tb_ptr >= &trace_buffer.tb_buffer[TRACE_BUFFER_SIZE])