소스 검색

reduced console noise

Leon Urbas 10 년 전
부모
커밋
39f9bcd462
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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"));