From: hadaq Date: Tue, 18 Aug 2009 13:35:18 +0000 (+0000) Subject: debugging X-Git-Tag: v6.0~402 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a74ee40a67491765b6e85d903053d97c6143446c;p=trbnettools.git debugging . --- diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index b39fc30..ab9e7a1 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -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; }