From: Stefan Metzmacher Date: Wed, 28 Apr 2010 12:38:19 +0000 (+0200) Subject: debug pipe read X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=d485cc5daac22b53ee554c15c1a147d3c5212501 debug pipe read --- diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index dc1dbfab6726..bdfbb387064e 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -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; diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 17d2678e3545..6bf031b72197 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -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: diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 53c5e0b40896..acb1980e62f7 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -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);