diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-19 17:03:55 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-19 17:03:55 +0100 |
commit | 408faed4df730384538aaa0e338ae8ea7abe400d (patch) | |
tree | d391e7b94bab9de64ded62faf06d32f8a8340d3d /src/lib/libkogata/debug.c | |
parent | 396a630f55aae0105ce56d302afaa937632d15ed (diff) | |
download | kogata-408faed4df730384538aaa0e338ae8ea7abe400d.tar.gz kogata-408faed4df730384538aaa0e338ae8ea7abe400d.zip |
Implement userspace malloc
Diffstat (limited to 'src/lib/libkogata/debug.c')
-rw-r--r-- | src/lib/libkogata/debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libkogata/debug.c b/src/lib/libkogata/debug.c index 9688877..a8b9414 100644 --- a/src/lib/libkogata/debug.c +++ b/src/lib/libkogata/debug.c @@ -2,13 +2,17 @@ #include <debug.h> +#include <syscall.h> + void panic(const char* msg, const char* file, int line) { - // TODO + dbg_printf("Panic '%s', at %s:%d\n", msg, file, line); + exit(-1); while(true); } void panic_assert(const char* assert, const char* file, int line) { - // TODO + dbg_printf("Assert failed '%s', at %s:%d\n", assert, file, line); + exit(-1); while(true); } |