Browse Source

reduced console noise

Leon Urbas 10 years ago
parent
commit
39f9bcd462
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/networklayer.c

+ 3 - 3
examples/networklayer.c

@@ -195,10 +195,10 @@ void* NL_TCP_reader(NL_Connection *c) {
 	}
 
 	UA_TL_Connection_getState(c->connection, &connectionState);
-	printf("NL_TCP_reader - connectionState=%d\n",connectionState);
+	DBG_VERBOSE(printf("NL_TCP_reader - connectionState=%d\n",connectionState));
 	if (connectionState == CONNECTIONSTATE_CLOSE) {
-		printf("NL_TCP_reader - closing connection");
-		// set connection's state to CONNECTIONSTATE_CLOSED and call callback
+		DBG_VERBOSE(printf("NL_TCP_reader - closing connection"));
+		// set connection's state to CONNECTIONSTATE_CLOSED and call callback to actually close
 		UA_TL_Connection_close(c->connection);
 #ifndef MULTITHREADING
 		DBG_VERBOSE(printf("NL_TCP_reader - search element to remove\n"));