summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-01-27 14:02:50 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-12 09:31:27 +0100
commit68f36d144adfa1294f026bdf2d348c22365543fc (patch)
treecb0aa1bdd384583752af252b0c693fb0a4badc89 /cpukit/libcsupport
parentbsp/lpc32xx: Add BSP_USB_OTG_TRANSCEIVER_VBUS (diff)
downloadrtems-68f36d144adfa1294f026bdf2d348c22365543fc.tar.bz2
score: Add and use rtems_assert_context
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/__assert.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/__assert.c b/cpukit/libcsupport/src/__assert.c
index be0fa6c2e9..d29ea0b7e0 100644
--- a/cpukit/libcsupport/src/__assert.c
+++ b/cpukit/libcsupport/src/__assert.c
@@ -34,6 +34,13 @@ void __assert_func(
const char *failedexpr
)
{
+ rtems_assert_context assert_context = {
+ .file = file,
+ .line = line,
+ .function = func,
+ .failed_expression = failedexpr
+ };
+
printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
failedexpr,
file,
@@ -41,7 +48,7 @@ void __assert_func(
(func) ? ", function: " : "",
(func) ? func : ""
);
- rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) func );
+ rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) &assert_context );
}
#endif