Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/assert.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 272 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /*
2     * assert.c
3     */
4    
5     #include <stdlib.h>
6     #include <stdio.h>
7     #include <assert.h>
8     #include <klibc/compiler.h>
9    
10     __noreturn __assert_fail(const char *expr, const char *file, unsigned int line)
11     {
12     printf("Assertion %s failed, file %s, line %u\n", expr, file, line);
13     abort();
14     }