mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix unportable pid_t printing in sortix/interrupt.cpp.
This commit is contained in:
parent
4c1d36fd11
commit
c11b1aba9e
1 changed files with 2 additions and 2 deletions
|
@ -259,8 +259,8 @@ void CrashHandler(CPU::InterruptRegisters* regs)
|
|||
|
||||
Interrupt::Enable();
|
||||
|
||||
Log::PrintF("The current program (pid %i %s) has crashed and was terminated:\n",
|
||||
CurrentProcess()->pid, CurrentProcess()->program_image_path);
|
||||
Log::PrintF("The current program (pid %ji %s) has crashed and was terminated:\n",
|
||||
(intmax_t) CurrentProcess()->pid, CurrentProcess()->program_image_path);
|
||||
Log::PrintF("%s exception at ip=0x%zx (cr2=0x%p, err_code=0x%p)\n",
|
||||
message, ip, regs->cr2, regs->err_code);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue