libcli/smb/smb_transport_tcp.c no debug
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Sep 2016 08:35:34 +0000 (10:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2018 12:35:07 +0000 (14:35 +0200)
libcli/smb/smb_transport_tcp.c

index 52e85ce3e901a7df27af9f387fce60e7b869304a..d0a9c51fd5963f6aba20595f8a0fe7ceb25e2b2c 100644 (file)
@@ -109,8 +109,8 @@ static struct tevent_req *smb_transport_tcp_write_pdu_send(TALLOC_CTX *mem_ctx,
 
        _smb_setlen_tcp(state->hdr, to_write);
 
-                       DEBUG(0,("%s:%s: to_write[%u]\n",
-                               __location__, __func__, (unsigned)to_write));
+                       //DEBUG(0,("%s:%s: to_write[%u]\n",
+                       //      __location__, __func__, (unsigned)to_write));
        /* we make a copy of the vector so that we can modify it */
        state->vector = talloc_array(state, struct iovec, 1 + count);
        if (tevent_req_nomem(state->vector, req)) {
@@ -205,7 +205,7 @@ static void smb_transport_tcp_read_pdu_done(struct tevent_req *subreq)
                struct smb_transport_tcp_read_pdu_state);
        ssize_t ret;
        int sys_errno;
-       uint32_t len;
+       //uint32_t len;
 
        ret = read_smb_recv(subreq, state, &state->inbuf, &sys_errno);
        TALLOC_FREE(subreq);
@@ -215,10 +215,10 @@ static void smb_transport_tcp_read_pdu_done(struct tevent_req *subreq)
                return;
        }
 
-       len = smb_len_tcp(state->inbuf);
-                       DEBUG(0,("%s:%s: read ret[%u] len_tcp[%u]\n",
-                               __location__, __func__, (unsigned)ret, len));
-       dump_data(0, state->inbuf, ret);
+       //len = smb_len_tcp(state->inbuf);
+                       //DEBUG(0,("%s:%s: read ret[%u] len_tcp[%u]\n",
+                       //      __location__, __func__, (unsigned)ret, len));
+       //dump_data(0, state->inbuf, ret);
        tevent_req_done(req);
 }