Pārlūkot izejas kodu

small fixes, printf added

tarfeef101 6 gadi atpakaļ
vecāks
revīzija
0fc46e62ce
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      kern/synchprobs/traffic_synch.c

+ 1 - 3
kern/synchprobs/traffic_synch.c

@@ -56,7 +56,6 @@ static void activeinit(void)
   for (int i = 0; i < 12; ++i)
   {
     *(active + i) = NULL;
-    kprintf("array at i: %p", *(active + i));
   }
 }
 
@@ -171,6 +170,7 @@ void intersection_sync_init()
     panic("Could not allocate offset arrays.\n");
   }
 
+  kprintf("finished init steps\n");
 }
 
 /*
@@ -183,7 +183,6 @@ void intersection_sync_init()
 void intersection_sync_cleanup()
 {
   KASSERT(active);
-  
   cleanup();
   lock_destroy(globlock);
 }
@@ -227,7 +226,6 @@ void intersection_before_entry(Direction origin, Direction destination)
           temp->cv = cv_create("carcv");
         }
         
-        //kprintf("actually sleeping now\n");
         cv_wait(temp->cv, globlock); // sleep and reacquire lock once woken
         goto RESTART; // now we have to make sure there's nothing else screwing us over
       }