Browse Source

Add debug messages to process.c

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
d3ad76bc74
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/core/process.c

+ 4
- 0
src/core/process.c View File

43
  * @v process		Process
43
  * @v process		Process
44
  */
44
  */
45
 void process_add ( struct process *process ) {
45
 void process_add ( struct process *process ) {
46
+	DBGC ( process, "PROCESS %p starting\n", process );
46
 	ref_get ( process->refcnt );
47
 	ref_get ( process->refcnt );
47
 	list_add_tail ( &process->list, &run_queue );
48
 	list_add_tail ( &process->list, &run_queue );
48
 }
49
 }
57
  */
58
  */
58
 void process_del ( struct process *process ) {
59
 void process_del ( struct process *process ) {
59
 	if ( ! list_empty ( &process->list ) ) {
60
 	if ( ! list_empty ( &process->list ) ) {
61
+		DBGC ( process, "PROCESS %p stopping\n", process );
60
 		list_del ( &process->list );
62
 		list_del ( &process->list );
61
 		INIT_LIST_HEAD ( &process->list );
63
 		INIT_LIST_HEAD ( &process->list );
62
 		ref_put ( process->refcnt );
64
 		ref_put ( process->refcnt );
65
+	} else {
66
+		DBGC ( process, "PROCESS %p already stopped\n", process );
63
 	}
67
 	}
64
 }
68
 }
65
 
69
 

Loading…
Cancel
Save