BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 7cbafe825afe9474334ec1f587aab8d82eb8bc64 / include / nucleus / panic.h

// Related

Nucleus

Barry Better logging/panic routines 7cbafe8 (3 years, 3 months ago)
diff --git a/include/nucleus/panic.h b/include/nucleus/panic.h
index 413fee6..63034cf 100644
--- a/include/nucleus/panic.h
+++ b/include/nucleus/panic.h
@@ -1,12 +1,13 @@
 #ifndef _NUCLEUS_PANIC_H
 #define _NUCLEUS_PANIC_H
 
+void kprintf(char *fmt, ...);
 _Noreturn void panic(char *fmt, ...);
 
 #define ASSERT(c) ({ \
 	if (__builtin_expect(!(c),0)) \
-		panic("Assertion failed (%s:%d): " #c, \
-		      __FILE__, __LINE__); \
+		panic("Assertion failed (%s:%d): %s", \
+		      __FILE__, __LINE__, #c); \
 	c; \
 })