summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/common/up_assert.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sh/src/common/up_assert.c')
-rw-r--r--nuttx/arch/sh/src/common/up_assert.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/nuttx/arch/sh/src/common/up_assert.c b/nuttx/arch/sh/src/common/up_assert.c
index 72880fd2a..7e8f13451 100644
--- a/nuttx/arch/sh/src/common/up_assert.c
+++ b/nuttx/arch/sh/src/common/up_assert.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/sh/src/common/up_assert.c
*
- * Copyright (C) 2008-2009, 2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -115,6 +115,7 @@ void up_assert(const uint8_t *filename, int lineno)
#endif
up_ledon(LED_ASSERTION);
+
#if CONFIG_TASK_NAME_SIZE > 0
lldbg("Assertion failed at file:%s line: %d task: %s\n",
filename, lineno, rtcb->name);
@@ -122,28 +123,7 @@ void up_assert(const uint8_t *filename, int lineno)
lldbg("Assertion failed at file:%s line: %d\n",
filename, lineno);
#endif
- up_dumpstate();
- _up_assert(EXIT_FAILURE);
-}
-/****************************************************************************
- * Name: up_assert_code
- ****************************************************************************/
-
-void up_assert_code(const uint8_t *filename, int lineno, int errorcode)
-{
-#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG)
- struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
-#endif
-
- up_ledon(LED_ASSERTION);
-#if CONFIG_TASK_NAME_SIZE > 0
- lldbg("Assertion failed at file:%s line: %d task: %s error code: %d\n",
- filename, lineno, rtcb->name, errorcode);
-#else
- lldbg("Assertion failed at file:%s line: %d error code: %d\n",
- filename, lineno, errorcode);
-#endif
up_dumpstate();
- _up_assert(errorcode);
+ _up_assert(EXIT_FAILURE);
}