summaryrefslogtreecommitdiff
path: root/kernel/smashing.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-22 16:35:12 +0200
committerMiguel <m.i@gmx.at>2018-08-22 16:35:12 +0200
commit98bf7b67543b36b6fe49f2b68c115ebeaf630603 (patch)
treeaad818381dfc42c4158b923d588bbe8d34f51e51 /kernel/smashing.c
parent323fb9d3e09903d6fa43ef7e1f0cc8934414c8d4 (diff)
cleanup logging
Diffstat (limited to 'kernel/smashing.c')
-rw-r--r--kernel/smashing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/smashing.c b/kernel/smashing.c
index 4757b71..005e784 100644
--- a/kernel/smashing.c
+++ b/kernel/smashing.c
@@ -1,3 +1,4 @@
+#include "kernel/kernel.h"
#include <stdint.h>
// CODE FOR Stack Smashing Protector.
// Do not duplicate with userspace / sys.c
@@ -16,6 +17,6 @@ uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
__attribute__((noreturn))
void __stack_chk_fail(void)
{
- panic(FOOLOS_MODULE_NAME,"Stack smashing detected");
+ kpanic("Stack smashing detected");
}
//