mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Standardize debug messages for read and write.
Jeremy.
This commit is contained in:
parent
aa51fa0ce3
commit
475531c9bb
@ -310,6 +310,12 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
|
|||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG(3,("smbd_smb2_read: fnum=[%d/%s] length=%lu offset=%lu read=%lu\n",
|
||||||
|
fsp->fnum, fsp_str_dbg(fsp),
|
||||||
|
(unsigned long)in_length,
|
||||||
|
(unsigned long)in_offset,
|
||||||
|
(unsigned long)nread));
|
||||||
|
|
||||||
state->out_data.length = nread;
|
state->out_data.length = nread;
|
||||||
state->out_remaining = 0;
|
state->out_remaining = 0;
|
||||||
tevent_req_done(req);
|
tevent_req_done(req);
|
||||||
|
@ -287,9 +287,11 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
|
|||||||
return tevent_req_post(req, ev);
|
return tevent_req_post(req, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(3,("smbd_smb2_write: fnum=[%d/%s] length=%d offset=%d wrote=%d\n",
|
DEBUG(3,("smbd_smb2_write: fnum=[%d/%s] length=%lu offset=%lu wrote=%lu\n",
|
||||||
fsp->fnum, fsp_str_dbg(fsp), (int)in_data.length,
|
fsp->fnum, fsp_str_dbg(fsp),
|
||||||
(int)in_offset, (int)nwritten));
|
(unsigned long)in_data.length,
|
||||||
|
(unsigned long)in_offset,
|
||||||
|
(unsigned long)nwritten));
|
||||||
|
|
||||||
if (in_flags & 0x00000001) {
|
if (in_flags & 0x00000001) {
|
||||||
write_through = true;
|
write_through = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user