2007-03-28 Joel Sherrill <joel@OARcorp.com>

PR 1234/cpukit
	* libcsupport/Makefile.am: Provide printk() based implementation of
	__assert() to reduce dependencies in executables.
	* libcsupport/src/__assert.c: New file.
This commit is contained in:
Joel Sherrill
2007-03-28 18:58:12 +00:00
parent 8c5707a31f
commit 4fbd8f7aa9
3 changed files with 29 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2007-03-28 Joel Sherrill <joel@OARcorp.com>
PR 1234/cpukit
* libcsupport/Makefile.am: Provide printk() based implementation of
__assert() to reduce dependencies in executables.
* libcsupport/src/__assert.c: New file.
2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org>
* librpc/src/rpc/clnt_tcp.c (clnttcp_create):

View File

@@ -33,7 +33,7 @@ include_rtems_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
include/zilog/z8536.h
## General stuff
ERROR_C_FILES = src/error.c
ERROR_C_FILES = src/error.c src/__assert.c
ASSOCIATION_C_FILES = src/assoc.c src/assoclocalbyname.c \
src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \

View File

@@ -0,0 +1,21 @@
/* __assert - small RTEMS Specific Implementation
*
* COPYRIGHT (c) 2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <rtems/bspIo.h>
#include <rtems.h>
void __assert(const char *file, int line, const char *failedexpr)
{
printk("assertion \"%s\" failed: file \"%s\", line %d\n",
failedexpr, file, line);
rtems_fatal_error_occurred(0);
}