Skip to content

Commit 88eafca

Browse files
authored
Add panic option
1 parent c0fa4d5 commit 88eafca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/kernel/printm/printm.c

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "printm.h"
22
#include <kernel/log.h>
33
#include <vga/vga.h>
4+
#include <kernel/panic.h>
45

56
void printm(int log_type, const char *str) {
67

@@ -12,6 +13,8 @@ void printm(int log_type, const char *str) {
1213
error_log(str);
1314
} else if (log_type == MESSAGE) {
1415
writestr(str);
16+
} else if (log_type == PANIC) {
17+
panic(str);
1518
} else {
1619
// Do nothing
1720
}

0 commit comments

Comments
 (0)