summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-14 13:26:39 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-15 03:28:15 +0200
commitbde02985e60932cb037e0a32682c26a0edef12d6 (patch)
treeae99eae5bc7edb27c1b46de90344fbe7c9f0ecb8
parent1e0eb242705e4396b5d8c7ff4b32b83932071ea5 (diff)
downloadsamba-bde02985e60932cb037e0a32682c26a0edef12d6.tar.gz
samba-bde02985e60932cb037e0a32682c26a0edef12d6.tar.bz2
samba-bde02985e60932cb037e0a32682c26a0edef12d6.zip
s3:smbd: change smb2_setinfo.c to use fsp_fnum_dbg() for fsp->fnum logging.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/smbd/smb2_setinfo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/smb2_setinfo.c b/source3/smbd/smb2_setinfo.c
index 14bb1dd7b6..c7652f6644 100644
--- a/source3/smbd/smb2_setinfo.c
+++ b/source3/smbd/smb2_setinfo.c
@@ -182,8 +182,8 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
}
state->smb2req = smb2req;
- DEBUG(10,("smbd_smb2_setinfo_send: %s - fnum[%d]\n",
- fsp_str_dbg(fsp), fsp->fnum));
+ DEBUG(10,("smbd_smb2_setinfo_send: %s - %s\n",
+ fsp_str_dbg(fsp), fsp_fnum_dbg(fsp)));
smbreq = smbd_smb2_fake_smb_request(smb2req);
if (tevent_req_nomem(smbreq, req)) {
@@ -265,7 +265,8 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
if (SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) != 0) {
DEBUG(3,("smbd_smb2_setinfo_send: fstat "
- "of fnum %d failed (%s)\n", fsp->fnum,
+ "of %s failed (%s)\n",
+ fsp_fnum_dbg(fsp),
strerror(errno)));
status = map_nt_error_from_unix(errno);
tevent_req_nterror(req, status);