Explorar el Código

Add debug messages to process.c

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
d3ad76bc74
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      src/core/process.c

+ 4
- 0
src/core/process.c Ver fichero

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

Loading…
Cancelar
Guardar