Selaa lähdekoodia

ssh: don't produce debug noise in release fw

Sergey Alirzaev 5 vuotta sitten
vanhempi
commit
5f9d52c4da
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      modules/SSH_Server/server.c

+ 2 - 0
modules/SSH_Server/server.c

@@ -104,10 +104,12 @@ static int NonBlockSSH_accept(WOLFSSH* ssh)
     while (ret != WS_SUCCESS &&
             (error == WS_WANT_READ || error == WS_WANT_WRITE))
     {
+#if DEBUG
         if (error == WS_WANT_READ)
             printf("... client would read block\n");
         else if (error == WS_WANT_WRITE)
             printf("... client would write block\n");
+#endif
 
         select_ret = tcp_select(sockfd, 1);
         if (select_ret == WS_SELECT_RECV_READY  ||