Fix unportable pid_t printing in sortix/interrupt.cpp.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-02-20 16:37:05 +01:00
parent 4c1d36fd11
commit c11b1aba9e
1 changed files with 2 additions and 2 deletions

View File

@ -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);