tarfeef101 преди 6 години
родител
ревизия
cf75bd1331
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      kern/synchprobs/traffic_synch.c

+ 2 - 1
kern/synchprobs/traffic_synch.c

@@ -66,7 +66,7 @@ static void push(car * newcar)
   // compass + origin is the array we use to determine what to add to the first number
   // newcar->dest gives the direction, which we use to find the offset indicating it's additive value
   int total = *(dirs + newcar->origin) + *(*(compass + newcar->origin) + newcar->dest);
-  
+  kprintf("halfway through push\n");
   // with our offset, set the pointer here to newcar
   *(active + total) = newcar;
 }
@@ -239,6 +239,7 @@ void intersection_before_entry(Direction origin, Direction destination)
     }
   }
   
+  kprintf("made it out of the for loop\n");
   push(new);
   kprintf("added a car to the int\n");
   lock_release(globlock);