From: Alan Cox Date: Fri, 3 Nov 2017 23:37:42 +0000 (+0000) Subject: process: when debugging it's nice to know why something exited X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fd0779cc97632ee8eb384edb52d32c56d4e739a0;p=FUZIX.git process: when debugging it's nice to know why something exited --- diff --git a/Kernel/process.c b/Kernel/process.c index 7665b5dd..9fafe08b 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -630,7 +630,7 @@ void doexit(uint16_t val) irqflags_t irq; #ifdef DEBUG - kprintf("process %d exiting\n", udata.u_ptab->p_pid); + kprintf("process %d exiting %d\n", udata.u_ptab->p_pid, val); kprintf ("udata.u_page %u, udata.u_ptab %p, udata.u_ptab->p_page %u\n",