]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
debugging
authorhadaq <hadaq>
Tue, 18 Aug 2009 13:35:18 +0000 (13:35 +0000)
committerhadaq <hadaq>
Tue, 18 Aug 2009 13:35:18 +0000 (13:35 +0000)
.

libtrbnet/trbnet.c

index b39fc30cffe9b0b49fc23e26172025e85d07dd2c..ab9e7a1cf148ba8d2243d9ecfd45a8feb00703da 100644 (file)
@@ -422,8 +422,6 @@ static int trb_fifo_read(uint8_t channel,
     
     if (((*tmp & MASK_FIFO_TYPE) >> SHIFT_FIFO_TYPE) == FIFO_TYPE_IS_HEADER) {
       /* TRBNet HEADER */
-      
-    
       if ((counter % 5) == 0) {
         /* New Package begins */
         if (trb_debug > 0) {
@@ -852,6 +850,7 @@ static int lockPorts()
   };
 
   if (semop(semid, sops, 2) == -1) {
+    perror("TRB_SEMAPHORE");
     trb_errno = TRB_SEMAPHORE;
     return -1;
   }
@@ -870,6 +869,7 @@ static int unlockPorts()
   };
   
   if (semop(semid, sops, 1) == -1) {
+    perror("TRB_SEMAPHORE");
     trb_errno = TRB_SEMAPHORE;
     return -1;
   }