]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Tue, 17 Jul 2012 18:53:49 +0000 (18:53 +0000)
committerhadaq <hadaq>
Tue, 17 Jul 2012 18:53:49 +0000 (18:53 +0000)
libtrbnet/trbnet.c

index 4a419faab31fce9aeb6d3e7a20d1609ebf2ca0a2..8f6d4da1670bdff754e8d52cc0354410e6c19bee 100644 (file)
@@ -1,9 +1,9 @@
 #ifdef PEXOR
-const char trbnet_version[] = "$Revision: 4.27 $  Local Pexor";
+const char trbnet_version[] = "$Revision: 4.28 $  Local Pexor";
 #elif defined TRB3
-const char trbnet_version[] = "$Revision: 4.27 $  Local TRB3";
+const char trbnet_version[] = "$Revision: 4.28 $  Local TRB3";
 #else
-const char trbnet_version[] = "$Revision: 4.27 $  Local Etrax";
+const char trbnet_version[] = "$Revision: 4.28 $  Local Etrax";
 #endif
 
 #include <stdlib.h>
@@ -384,7 +384,9 @@ static int getUDPPackage()
   int i;
   
   /* GetData */
-  fprintf(stderr, "Wait UDP Data\n");
+  if (trb_debug > 2) {
+    fprintf(stderr, "Wait UDP Data\n");
+  }
   status = recv(trb3_sockfd_in, (void*)dataBuffer, 65536, 0);
   if (status == -1) {
     trb_errno = errno == EAGAIN 
@@ -393,7 +395,9 @@ static int getUDPPackage()
     return -1;
   }
   dataBufferSize = status / 2;
-  fprintf(stderr, "udp received: %d\n", status);
+  if (trb_debug > 2) {
+    fprintf(stderr, "udp received: %d\n", status);
+  }
   
   /* Adjust endianess ... */
   if (trb_debug > 2) {