From: Jorrit Herder Date: Wed, 10 Aug 2005 09:51:29 +0000 (+0000) Subject: Minor beautification. X-Git-Tag: v3.1.0~380 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=f83ae4b3d10fa1460a89ace54e922156cbeb5225;p=minix.git Minor beautification. --- diff --git a/kernel/proc.c b/kernel/proc.c index 8fab71827..570cb9d8d 100755 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -113,10 +113,9 @@ message *m_ptr; /* pointer to message in the caller's space */ */ if (! (priv(caller_ptr)->s_trap_mask & (1 << function)) || (iskerneln(src_dst) && function != SENDREC && function != RECEIVE)) { - kprintf("sys_call: trap not allowed, function %d, caller %d, mask %x, src_dst %d\n", - function, proc_nr(caller_ptr), - priv(caller_ptr)->s_trap_mask, src_dst); - return(ECALLDENIED); /* call denied by trap mask */ + kprintf("sys_call: trap %d not allowed, caller %d, src_dst %d\n", + function, proc_nr(caller_ptr), src_dst); + return(ECALLDENIED); /* trap denied by mask or kernel */ } /* Require a valid source and/ or destination process, unless echoing. */ @@ -137,7 +136,7 @@ message *m_ptr; /* pointer to message in the caller's space */ if (vlo < caller_ptr->p_memmap[D].mem_vir || vlo > vhi || vhi >= caller_ptr->p_memmap[S].mem_vir + caller_ptr->p_memmap[S].mem_len) { - kprintf("sys_call: invalid message pointer, function %d, caller %d\n", + kprintf("sys_call: invalid message pointer, trap %d, caller %d\n", function, proc_nr(caller_ptr)); return(EFAULT); /* invalid message pointer */ }