Parcourir la source

testing arrays

tarfeef101 il y a 6 ans
Parent
commit
39e08428d0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      kern/synchprobs/traffic_synch.c

+ 1 - 1
kern/synchprobs/traffic_synch.c

@@ -26,7 +26,6 @@ int * easta;
 int * southa;
 int * westa;
 int test[5] = {0,0,0,0,0};
-kprintf("test success, %d", test[0]);
 
 // car initializer/allocator
 static car * newcar(Direction origin, Direction dest)
@@ -120,6 +119,7 @@ static bool rightturn(car * car)
 // inits all arrays we need, lock.
 void intersection_sync_init()
 {
+  kprintf("test success, %d", test[0]);
   globlock = lock_create("lightlock");
   
   if (!(globlock))