Proc data structure management, env gutting
[akaros.git] / kern / arch / i386 / trap.c
index 7a1f9c7..b865fe7 100644 (file)
@@ -341,7 +341,7 @@ page_fault_handler(trapframe_t *tf)
 
        // Destroy the environment that caused the fault.
        cprintf("[%08x] user fault va %08x ip %08x from core %d\n",
 
        // Destroy the environment that caused the fault.
        cprintf("[%08x] user fault va %08x ip %08x from core %d\n",
-               current->env_id, fault_va, tf->tf_eip, core_id());
+               current->pid, fault_va, tf->tf_eip, core_id());
        print_trapframe(tf);
        proc_destroy(current);
 }
        print_trapframe(tf);
        proc_destroy(current);
 }