Changeset 29ab6a0 in rtems


Ignore:
Timestamp:
Jan 9, 2008, 4:37:40 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
dee3992f
Parents:
b36dc03
Message:

2008-01-09 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/assert.c: Clean up and make assert() call assert_func().
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb36dc03 r29ab6a0  
     12008-01-09      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * libcsupport/src/__assert.c: Clean up and make __assert() call
     4        __assert_func().
     5
    162008-01-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libcsupport/src/__assert.c

    rb36dc03 r29ab6a0  
    1818#include <rtems.h>
    1919
    20 void __assert(
    21   const char *file,
    22   int         line,
    23  
    24 const char *failedexpr)
    25 {
    26   printk(
    27     "assertion \"%s\" failed: file \"%s\", line %d\n",
    28     failedexpr,
    29     file,
    30     line
    31    );
    32    rtems_fatal_error_occurred(0);
    33 }
    3420
    3521/*
    36  * Newlib 1.16.0 added this method
     22 * Newlib 1.16.0 added this method.  Together these provide an
     23 * RTEMS safe, low memory implementation.
    3724 */
    3825void __assert_func(
     
    4734    file,
    4835    line,
    49     func ? ", function: " : "", func ? func : ""
     36    (func) ? ", function: " : "",
     37    (func) ? func : ""
    5038  );
    5139  rtems_fatal_error_occurred(0);
    5240}
     41
     42void __assert(
     43  const char *file,
     44  int         line,
     45  const char *failedexpr
     46)
     47{
     48  __assert_func (file, line, NULL, failedexpr);
     49}
Note: See TracChangeset for help on using the changeset viewer.