Add __FBSDID.

Change __assert() function to print failing function name.
This makes us C99 conforming.
This commit is contained in:
asmodai 2001-10-24 18:12:43 +00:00
parent c3318c8912
commit 4a6f23e243

View File

@ -32,8 +32,10 @@ __FBSDID("$FreeBSD$");
#include "stand.h"
void
__assert(const char *file, int line, const char *expression)
__assert(const char *function, const char *file, int line,
const char *expression)
{
printf("assertion \"%s\" failed: file \"%s\", line %d\n", expression, file, line);
exit();
printf("assertion (%s) failed: function %s(), file %s:%d\n",
expression, function, file, line);
exit();
}