Index: libmodbus_dy-3.1.4/src/modbus-tcp.c
===================================================================
--- libmodbus_dy-3.1.4.orig/src/modbus-tcp.c
+++ libmodbus_dy-3.1.4/src/modbus-tcp.c
@@ -124,7 +124,6 @@ static int _modbus_tcp_build_request_bas
 										  int len, uint8_t *req)
 {
    modbus_tcp_t *ctx_tcp = ctx->backend_data;
-   printf("%s line %d\n",__FUNCTION__,__LINE__);
 
    /* Increase transaction ID */
    if (ctx_tcp->t_id < UINT16_MAX)
@@ -137,12 +136,10 @@ static int _modbus_tcp_build_request_bas
    /* Protocol Modbus */
    req[2] = 0;
    req[3] = 0;
-   printf("%s line %d len %d\n",__FUNCTION__,__LINE__,len);
    /* Length will be defined later by set_req_length_tcp at offsets 4
 	  and 5 */
 #if 1
 	memcpy(req+6, buf, len);
-	printf("%s line %d\n",__FUNCTION__,__LINE__);
 	return 6+len;
 #else
    req[6] = ctx->slave;
Index: libmodbus_dy-3.1.4/src/modbus.c
===================================================================
--- libmodbus_dy-3.1.4.orig/src/modbus.c
+++ libmodbus_dy-3.1.4/src/modbus.c
@@ -1180,34 +1180,29 @@ static int communication_transparent(mod
   int req_length;
   uint8_t req[MAX_MESSAGE_LENGTH];
   uint8_t rsp[MAX_MESSAGE_LENGTH];
-  printf("%s line %d _MIN_REQ_LENGTH %d MAX_MESSAGE_LENGTH %d\n",__FUNCTION__,__LINE__,_MIN_REQ_LENGTH,MAX_MESSAGE_LENGTH);
+  
   if(!ctx->backend->build_request_basis_communication_transparent)
   	return -1;
-  printf("%s line %d\n",__FUNCTION__,__LINE__);
+	
   req_length = ctx->backend->build_request_basis_communication_transparent(ctx, buf, len, req);
-  printf("%s line %d req_length %d\n",__FUNCTION__,__LINE__,req_length);
   rc = send_msg(ctx, req, req_length);
   if (rc > 0) {
 	  int offset;
 	  int i;
   	  int len=0;
   	  int rcv=0;
-	  printf("%s line %d rc %d\n",__FUNCTION__,__LINE__,rc);
+	  
 	  rc = _modbus_receive_msg(ctx, rsp, MSG_CONFIRMATION);
-	  printf("%s line %d rc %d\n",__FUNCTION__,__LINE__,rc);
 	  if (rc == -1)
 		  return -1;
-	  printf("%s line %d\n",__FUNCTION__,__LINE__);
 	  rcv = check_confirmation(ctx, req, rsp, rc);
 	  if (rcv == -1)
 		  return -1;
 	  
-	  printf("%s line %d rc %d rcv %d\n",__FUNCTION__,__LINE__,rc,rcv);
-	  for(i=0; i<rc; i++)
+	  /*for(i=0; i<rc; i++)
 	  {
 		printf("[0x%x] ",rsp[i]);
-	  }
-	  printf("%s line %d rc %d\n",__FUNCTION__,__LINE__,rc);
+	  }*/
 	  len = rc-6;
 	  memcpy(dest, rsp+6, len);
 
@@ -1248,7 +1243,7 @@ int modbus_read_registers(modbus_t *ctx,
 int modbus_communication_transparent(modbus_t *ctx, char *buf, int len, char *dest)
 {
     int status;
-	printf("%s line %d\n",__FUNCTION__,__LINE__);
+	
     if (ctx == NULL) {
         errno = EINVAL;
         return -1;
@@ -1263,7 +1258,6 @@ int modbus_communication_transparent(mod
         errno = EMBMDATA;
         return -1;
     }
-	printf("%s line %d\n",__FUNCTION__,__LINE__);
     status = communication_transparent(ctx, buf, len, dest);
     return status;
 }
