]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Wed, 19 Oct 2011 15:33:29 +0000 (15:33 +0000)
committerhadaq <hadaq>
Wed, 19 Oct 2011 15:33:29 +0000 (15:33 +0000)
libtrbnet/Makefile.gbit
libtrbnet/trbnet.c

index 60776565de2593690bfaf9f4ebdf65f6ddb50edd..702b5540b91ce1d74d6877da82ec6f6b0b47b8e3 100644 (file)
@@ -1,9 +1,9 @@
 # ------------ Compiler / Linker Options -------------------------------
 
 ifeq ($(shell uname -m), x86_64)
-       CPPFLAGS = -DX86_64 -DGBIT
+       CPPFLAGS = -DX86_64 -DGBE
 else
-       CPPFLAGS = -DGBIT
+       CPPFLAGS = -DGBE
 endif
 
 CC = gcc
index f35be103d31668caa64686a1a34af34efefdc8d4..64d72fa09dd376c36b8b15c196b897cd989485c5 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 4.11 $  Local";
+const char trbnet_version[] = "$Revision: 4.12 $  Local";
 
 #include <stdlib.h>
 #include <signal.h>
@@ -528,13 +528,11 @@ static int trb_fifo_read(uint8_t channel,
 #ifdef PEXOR
   if (dataBufferSize == 0) {
     trb_errno = TRB_PEXOR_DMA_ERROR;
-    fprintf(stderr, "DMA: err 0\n");
     return -1;
   }
   if (read(pexorFileHandle,
            (void*)dataBuffer, dataBufferSize * 4) != dataBufferSize * 4) {
     trb_errno = TRB_PEXOR_DMA_ERROR;
-    fprintf(stderr, "DMA: err 1\n");
     return -1;
   }
 #else
@@ -1086,7 +1084,6 @@ static int trb_fifo_read(uint8_t channel,
 #ifdef PEXOR
     if (tmp - dataBuffer >= dataBufferSize) {
       trb_errno = TRB_PEXOR_DMA_ERROR;
-    fprintf(stderr, "DMA: err 2\n");
       return -1;
     }
     tmp++;