diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-09 20:31:09 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-09 20:31:09 +0000 |
commit | e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba (patch) | |
tree | 03677254da10c111c5b766d197c8799ac87e1833 /nuttx/arch | |
parent | c632e36db2bb7262cb645c7d59f0c3858621e390 (diff) | |
download | px4-nuttx-e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba.tar.gz px4-nuttx-e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba.tar.bz2 px4-nuttx-e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba.zip |
SDCC specific changes. Z80 support; re-enable __FILE__ and __LINE__ in assert -- might have broken the 8051/2
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@277 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/pjrc-8051/src/up_assert.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_assert.c b/nuttx/arch/pjrc-8051/src/up_assert.c index 01bec26ca..a0d04c393 100644 --- a/nuttx/arch/pjrc-8051/src/up_assert.c +++ b/nuttx/arch/pjrc-8051/src/up_assert.c @@ -95,7 +95,7 @@ static void _up_assert(int errorcode) /* __attribute__ ((noreturn)) */ * Name: up_assert ************************************************************/ -void up_assert(void) +void up_assert(const ubyte *filename, int lineno) { #if CONFIG_TASK_NAME_SIZE > 0 _TCB *rtcb = (_TCB*)g_readytorun.head; @@ -104,9 +104,11 @@ void up_assert(void) up_ledon(LED_ASSERTION); #if CONFIG_TASK_NAME_SIZE > 0 - lldbg("%s: Assertion failed\n", rtcb->name); + lldbg("Assertion failed at file:%s line: %d task: %s\n", + filename, lineno, rtcb->name); #else - lldbg("Assertion failed\n"); + lldbg("Assertion failed at file:%s line: %d\n", + filename, lineno); #endif up_dumpstack(); @@ -117,7 +119,7 @@ void up_assert(void) * Name: up_assert_code ************************************************************/ -void up_assert_code(int errorcode) +void up_assert_code(const ubyte *filename, int lineno, int errorcode) { #if CONFIG_TASK_NAME_SIZE > 0 _TCB *rtcb = (_TCB*)g_readytorun.head; @@ -126,9 +128,11 @@ void up_assert_code(int errorcode) up_ledon(LED_ASSERTION); #if CONFIG_TASK_NAME_SIZE > 0 - lldbg("%s: Assertion failed, error=%d\n", rtcb->name, errorcode); + lldbg("Assertion failed at file:%s line: %d task: %s error code: %d\n", + filename, lineno, rtcb->name, errorcode); #else - lldbg("Assertion failed , error=%d\n", errorcode); + lldbg("Assertion failed at file:%s line: %d error code: %d\n", + filename, lineno, errorcode); #endif up_dumpstack(); |