From 7472380e13b4f6b512627241245747e44b105fb0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 14 Jun 2012 12:14:32 +0200 Subject: s3:locking: change brlock.c to use fsp_fnum_dbg() for fsp->fnum logging. Signed-off-by: Stefan Metzmacher --- source3/locking/brlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index b82914a0f8..836bbb49a7 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1315,9 +1315,9 @@ bool brl_locktest(struct byte_range_lock *br_lck, if(lp_posix_locking(fsp->conn->params) && (lock_flav == WINDOWS_LOCK)) { ret = is_posix_locked(fsp, &start, &size, &lock_type, WINDOWS_LOCK); - DEBUG(10,("brl_locktest: posix start=%.0f len=%.0f %s for fnum %d file %s\n", + DEBUG(10,("brl_locktest: posix start=%.0f len=%.0f %s for %s file %s\n", (double)start, (double)size, ret ? "locked" : "unlocked", - fsp->fnum, fsp_str_dbg(fsp))); + fsp_fnum_dbg(fsp), fsp_str_dbg(fsp))); /* We need to return the inverse of is_posix_locked. */ ret = !ret; @@ -1381,9 +1381,9 @@ NTSTATUS brl_lockquery(struct byte_range_lock *br_lck, if(lp_posix_locking(fsp->conn->params)) { bool ret = is_posix_locked(fsp, pstart, psize, plock_type, POSIX_LOCK); - DEBUG(10,("brl_lockquery: posix start=%.0f len=%.0f %s for fnum %d file %s\n", + DEBUG(10,("brl_lockquery: posix start=%.0f len=%.0f %s for %s file %s\n", (double)*pstart, (double)*psize, ret ? "locked" : "unlocked", - fsp->fnum, fsp_str_dbg(fsp))); + fsp_fnum_dbg(fsp), fsp_str_dbg(fsp))); if (ret) { /* Hmmm. No clue what to set smblctx to - use -1. */ -- cgit