s3:smbd: change smb2_ioctl.c to use fsp_fnum_dbg() for fsp->fnum logging.
authorMichael Adam <obnox@samba.org>
Thu, 14 Jun 2012 11:20:08 +0000 (13:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 15 Jun 2012 01:28:15 +0000 (03:28 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_ioctl.c

index db1ef0883e4ef87094251f9a61aa2593ea0dff6a..36b44e62dc3a3f8afa4ea1b8d16473a9a64f4fec 100644 (file)
@@ -369,10 +369,10 @@ static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx,
        state->in_max_output = in_max_output;
        state->out_output = data_blob_null;
 
-       DEBUG(10, ("smbd_smb2_ioctl: ctl_code[0x%08x] %s fnum[%d]\n",
+       DEBUG(10, ("smbd_smb2_ioctl: ctl_code[0x%08x] %s, %s\n",
                   (unsigned)in_ctl_code,
                   fsp ? fsp_str_dbg(fsp) : "<no handle>",
-                  fsp ? fsp->fnum : FNUM_FIELD_INVALID));
+                  fsp_fnum_dbg(fsp)));
 
        smbreq = smbd_smb2_fake_smb_request(smb2req);
        if (tevent_req_nomem(smbreq, req)) {