summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-14 12:55:59 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-15 03:28:14 +0200
commitcd37c68fad18deaedebec9d200b2c75ba72788b6 (patch)
treec990fdddecc4085a7a2cd29b29596a71dffb90cf /source3
parentcdfc301da9607ab9a0dbbd4ad89c5531ceab95fd (diff)
downloadsamba-cd37c68fad18deaedebec9d200b2c75ba72788b6.tar.gz
samba-cd37c68fad18deaedebec9d200b2c75ba72788b6.tar.xz
samba-cd37c68fad18deaedebec9d200b2c75ba72788b6.zip
s3:smbd: change oplock.c to use fsp_fnum_dbg() for fsp->fnum logging.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/oplock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 835ea366f9..54d95a25b5 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -173,8 +173,8 @@ bool remove_oplock(files_struct *fsp)
ret = remove_share_oplock(lck, fsp);
if (!ret) {
DEBUG(0,("remove_oplock: failed to remove share oplock for "
- "file %s fnum %d, %s\n",
- fsp_str_dbg(fsp), fsp->fnum,
+ "file %s, %s, %s\n",
+ fsp_str_dbg(fsp), fsp_fnum_dbg(fsp),
file_id_string_tos(&fsp->file_id)));
}
release_file_oplock(fsp);
@@ -199,8 +199,8 @@ bool downgrade_oplock(files_struct *fsp)
ret = downgrade_share_oplock(lck, fsp);
if (!ret) {
DEBUG(0,("downgrade_oplock: failed to downgrade share oplock "
- "for file %s fnum %d, file_id %s\n",
- fsp_str_dbg(fsp), fsp->fnum,
+ "for file %s, %s, file_id %s\n",
+ fsp_str_dbg(fsp), fsp_fnum_dbg(fsp),
file_id_string_tos(&fsp->file_id)));
}
@@ -413,7 +413,7 @@ void break_level2_to_none_async(files_struct *fsp)
SMB_ASSERT(fsp->oplock_type == LEVEL_II_OPLOCK);
DEBUG(10,("process_oplock_async_level2_break_message: sending break "
- "to none message for fid %d, file %s\n", fsp->fnum,
+ "to none message for %s, file %s\n", fsp_fnum_dbg(fsp),
fsp_str_dbg(fsp)));
/* Now send a break to none message to our client. */