summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-14 13:28:17 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-15 03:28:15 +0200
commitd056fd14c88bb2eeccada13265473bbf52c1682b (patch)
treebd6201383c9bfa83b17ed66483007891e0b34587 /source3/smbd
parentbde02985e60932cb037e0a32682c26a0edef12d6 (diff)
downloadsamba-d056fd14c88bb2eeccada13265473bbf52c1682b.tar.gz
samba-d056fd14c88bb2eeccada13265473bbf52c1682b.tar.bz2
samba-d056fd14c88bb2eeccada13265473bbf52c1682b.zip
s3:smbd: change smb2_write.c to use fsp_fnum_dbg() for fsp->fnum logging.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_write.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index 0aa7303328..778f15a567 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -184,9 +184,9 @@ NTSTATUS smb2_write_complete(struct tevent_req *req, ssize_t nwritten, int err)
if (nwritten == -1) {
status = map_nt_error_from_unix(err);
- DEBUG(2, ("smb2_write failed: fnum=[%d/%s] "
+ DEBUG(2, ("smb2_write failed: %s, file %s, "
"length=%lu offset=%lu nwritten=-1: %s\n",
- fsp->fnum,
+ fsp_fnum_dbg(fsp),
fsp_str_dbg(fsp),
(unsigned long)state->in_length,
(unsigned long)state->in_offset,
@@ -195,9 +195,9 @@ NTSTATUS smb2_write_complete(struct tevent_req *req, ssize_t nwritten, int err)
return status;
}
- DEBUG(3,("smb2: fnum=[%d/%s] "
+ DEBUG(3,("smb2: %s, file %s, "
"length=%lu offset=%lu wrote=%lu\n",
- fsp->fnum,
+ fsp_fnum_dbg(fsp),
fsp_str_dbg(fsp),
(unsigned long)state->in_length,
(unsigned long)state->in_offset,
@@ -262,8 +262,8 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
state->in_length = in_data.length;
state->out_count = 0;
- DEBUG(10,("smbd_smb2_write: %s - fnum[%d]\n",
- fsp_str_dbg(fsp), fsp->fnum));
+ DEBUG(10,("smbd_smb2_write: %s - %s\n",
+ fsp_str_dbg(fsp), fsp_fnum_dbg(fsp)));
smbreq = smbd_smb2_fake_smb_request(smb2req);
if (tevent_req_nomem(smbreq, req)) {