mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6173 from cmonr/fix-underflow-error-msg
Modifies error text reported from RTX from 'underflow' to 'overflow'pull/6282/merge
commit
31ccedc1a2
|
@ -45,7 +45,8 @@ __NO_RETURN uint32_t osRtxErrorNotify (uint32_t code, void *object_id)
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case osRtxErrorStackUnderflow:
|
case osRtxErrorStackUnderflow:
|
||||||
// Stack underflow detected for thread (thread_id=object_id)
|
// Stack underflow detected for thread (thread_id=object_id)
|
||||||
error("CMSIS-RTOS error: Stack underflow (status: 0x%X, task ID: 0x%X, task name: %s)\n\r",
|
// Note: "overflow" is printed instead of "underflow" due to end user familiarity with overflow errors
|
||||||
|
error("CMSIS-RTOS error: Stack overflow (status: 0x%X, task ID: 0x%X, task name: %s)\n\r",
|
||||||
code, object_id, osThreadGetName(object_id));
|
code, object_id, osThreadGetName(object_id));
|
||||||
break;
|
break;
|
||||||
case osRtxErrorISRQueueOverflow:
|
case osRtxErrorISRQueueOverflow:
|
||||||
|
|
Loading…
Reference in New Issue