diff options
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/brlock.c | 4 | ||||
-rw-r--r-- | source3/locking/locking.c | 4 | ||||
-rw-r--r-- | source3/locking/posix.c | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index adf1f5194c..b82914a0f8 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -54,10 +54,10 @@ static void print_lock_struct(unsigned int i, struct lock_struct *pls) (unsigned int)pls->context.tid, server_id_str(talloc_tos(), &pls->context.pid) )); - DEBUG(10,("start = %.0f, size = %.0f, fnum = %d, %s %s\n", + DEBUG(10,("start = %.0f, size = %.0f, fnum = %llu, %s %s\n", (double)pls->start, (double)pls->size, - pls->fnum, + (unsigned long long)pls->fnum, lock_type_name(pls->lock_type), lock_flav_name(pls->lock_flav) )); } diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 5da7595737..5553702274 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -154,11 +154,11 @@ bool strict_lock_default(files_struct *fsp, struct lock_struct *plock) } DEBUG(10,("strict_lock_default: flavour = %s brl start=%.0f " - "len=%.0f %s for fnum %d file %s\n", + "len=%.0f %s for fnum %llu file %s\n", lock_flav_name(plock->lock_flav), (double)plock->start, (double)plock->size, ret ? "unlocked" : "locked", - plock->fnum, fsp_str_dbg(fsp))); + (unsigned long long)plock->fnum, fsp_str_dbg(fsp))); return ret; } diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 557099b2d8..2a274f9a00 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -791,7 +791,8 @@ static struct lock_list *posix_lock_list(TALLOC_CTX *ctx, for (l_curr = lhead; l_curr;) { - DEBUG(10,("posix_lock_list: lock: fnum=%d: start=%.0f,size=%.0f:type=%s", lock->fnum, + DEBUG(10,("posix_lock_list: lock: fnum=%llu: start=%.0f,size=%.0f:type=%s", + (unsigned long long)lock->fnum, (double)lock->start, (double)lock->size, posix_lock_type_name(lock->lock_type) )); if ( (l_curr->start >= (lock->start + lock->size)) || |