debug pipe read
authorStefan Metzmacher <metze@samba.org>
Wed, 28 Apr 2010 12:38:19 +0000 (14:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 29 Apr 2010 13:53:16 +0000 (15:53 +0200)
source3/rpc_server/srv_pipe_hnd.c
source3/smbd/pipes.c
source3/smbd/process.c

index dc1dbfab6726ff013dc49d4f9b4805f4082de855..bdfbb387064e84d39a4100ba0a2e925aafa2f885 100644 (file)
@@ -1431,6 +1431,11 @@ static void np_read_done(struct tevent_req *subreq)
 
        state->nread = ret;
        state->is_data_outstanding = (state->next_vector.remaining > 0);
+DEBUG(0,("read %u (0x%X) remainging %u (0x%X) is_outst %d\n",
+       state->nread, state->nread,
+       state->next_vector.remaining,
+       state->next_vector.remaining,
+       state->is_data_outstanding));
 
        tevent_req_done(req);
        return;
index 17d2678e354515d235034acc1917ed7b9a40059f..6bf031b721975a85e469c612a44784c859935f98 100644 (file)
@@ -475,7 +475,7 @@ static void pipe_read_andx_done(struct tevent_req *subreq)
              + 2);             /* the buflen field */
        SSVAL(req->outbuf,smb_vwv11,state->smb_maxcnt);
   
-       DEBUG(3,("readX-IPC min=%d max=%d nread=%d\n",
+       DEBUG(0,("readX-IPC min=%d max=%d nread=%d\n",
                 state->smb_mincnt, state->smb_maxcnt, (int)nread));
 
  done:
index 53c5e0b4089665f68385bd43cbbd2ea51e75da2c..acb1980e62f7ac5814f0ce0ddf848fcc2a5cf0f8 100644 (file)
@@ -1741,7 +1741,9 @@ size_t req_wct_ofs(struct smb_request *req)
 
 static void fixup_chain_error_packet(struct smb_request *req)
 {
-       uint8_t *outbuf = req->outbuf;
+       uint8_t *outbuf;
+
+       outbuf = req->outbuf;
        req->outbuf = NULL;
        reply_outbuf(req, 2, 0);
        memcpy(req->outbuf, outbuf, smb_wct);