summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-14 13:25:29 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-15 03:28:15 +0200
commit1e0eb242705e4396b5d8c7ff4b32b83932071ea5 (patch)
tree5ff17e5a5434da2d82bbc0cedbc4c0b8a4f86d83 /source3/smbd
parent632560b4d83fd71120752861629d8df8f8e002bc (diff)
downloadsamba-1e0eb242705e4396b5d8c7ff4b32b83932071ea5.tar.gz
samba-1e0eb242705e4396b5d8c7ff4b32b83932071ea5.tar.bz2
samba-1e0eb242705e4396b5d8c7ff4b32b83932071ea5.zip
s3:smbd: change smb2_read.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_read.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 7bf712bc45..54bd3cdf7c 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -351,8 +351,8 @@ NTSTATUS smb2_read_complete(struct tevent_req *req, ssize_t nread, int err)
return NT_STATUS_END_OF_FILE;
}
- DEBUG(3,("smbd_smb2_read: fnum=[%d/%s] length=%lu offset=%lu read=%lu\n",
- fsp->fnum,
+ DEBUG(3,("smbd_smb2_read: %s, file %s, length=%lu offset=%lu read=%lu\n",
+ fsp_fnum_dbg(fsp),
fsp_str_dbg(fsp),
(unsigned long)state->in_length,
(unsigned long)state->in_offset,
@@ -406,8 +406,8 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
state->out_data = data_blob_null;
state->out_remaining = 0;
- DEBUG(10,("smbd_smb2_read: %s - fnum[%d]\n",
- fsp_str_dbg(fsp), fsp->fnum));
+ DEBUG(10,("smbd_smb2_read: %s - %s\n",
+ fsp_str_dbg(fsp), fsp_fnum_dbg(fsp)));
smbreq = smbd_smb2_fake_smb_request(smb2req);
if (tevent_req_nomem(smbreq, req)) {
@@ -519,10 +519,10 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
- DEBUG(10,("smbd_smb2_read: file %s fnum[%d] offset=%llu "
+ DEBUG(10,("smbd_smb2_read: file %s, %s, offset=%llu "
"len=%llu returned %lld\n",
fsp_str_dbg(fsp),
- fsp->fnum,
+ fsp_fnum_dbg(fsp),
(unsigned long long)in_offset,
(unsigned long long)in_length,
(long long)nread));