2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

Add debug messages to process.c

This commit is contained in:
Michael Brown 2007-07-10 06:24:30 +01:00
parent edc4648c39
commit d3ad76bc74

View File

@ -43,6 +43,7 @@ static struct process processes_end[0]
* @v process Process
*/
void process_add ( struct process *process ) {
DBGC ( process, "PROCESS %p starting\n", process );
ref_get ( process->refcnt );
list_add_tail ( &process->list, &run_queue );
}
@ -57,9 +58,12 @@ void process_add ( struct process *process ) {
*/
void process_del ( struct process *process ) {
if ( ! list_empty ( &process->list ) ) {
DBGC ( process, "PROCESS %p stopping\n", process );
list_del ( &process->list );
INIT_LIST_HEAD ( &process->list );
ref_put ( process->refcnt );
} else {
DBGC ( process, "PROCESS %p already stopped\n", process );
}
}