Sfoglia il codice sorgente

and so the debug begins

tarfeef101 6 anni fa
parent
commit
a5bf0abf6d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      kern/synchprobs/traffic_synch.c

+ 1 - 1
kern/synchprobs/traffic_synch.c

@@ -6,7 +6,6 @@
 
 static struct lock * globlock;
 typedef struct cv cv;
-typedef struct array arr;
 
 // This section contains global vars and useful functions to work with them. As well as the structs used for them
 typedef struct car
@@ -57,6 +56,7 @@ static void activeinit(void)
   for (int i = 0; i < 12; ++i)
   {
     *(active + i) = NULL;
+    kprintf("array at i: %d", *(active + i));
   }
 }