We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ed96e commit b0e01b7Copy full SHA for b0e01b7
1 file changed
src/kernel/syscalls.cpp
@@ -175,7 +175,7 @@ void panic(const char* why)
175
PER_CPU(panic_stuff).reenter = true;
176
/// display informacion ...
177
SMP::global_lock();
178
- fprintf(stderr, "\n\t**** CPU %u PANIC: ****\n %s\n",
+ fprintf(stderr, "\n\t**** CPU %u PANIC: ****\n %s\n",
179
SMP::cpu_id(), why);
180
// the crash context buffer can help determine cause of crash
181
int len = strnlen(get_crash_context_buffer(), CONTEXT_BUFFER_LENGTH);
@@ -200,7 +200,7 @@ void panic(const char* why)
200
// call custom on panic handler
201
if (panic_handler) panic_handler();
202
203
- if (SMP::cpu_id() == 1) {
+ if (SMP::cpu_id() == 0) {
204
205
// Signal End-Of-Transmission
206
fprintf(stderr, "\x04"); fflush(stderr);
0 commit comments