Skip to content

Commit 1ffa8c4

Browse files
committed
panic: use safest print funciton for EOT
1 parent d3bace4 commit 1ffa8c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/kernel/syscalls.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,13 @@ void panic(const char* why)
154154
print_backtrace();
155155
fflush(stderr);
156156
SMP::global_unlock();
157-
158157
// call custom on panic handler
159158
if (panic_handler) panic_handler();
160159

161160
if (SMP::cpu_id() == 0) {
162161
SMP::global_lock();
163162
// Signal End-Of-Transmission
164-
fprintf(stderr, "\x04"); fflush(stderr);
163+
kprint("\x04");
165164
SMP::global_unlock();
166165
}
167166

0 commit comments

Comments
 (0)