summaryrefslogtreecommitdiff
path: root/source3/locking/locking.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-05 05:23:29 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-05 05:23:29 +0000
commit012e575e1336fbba70174d32c26ecab9ce5523ce (patch)
treea9a5282e7d59433dec562e07abfd5b79f6f0cf32 /source3/locking/locking.c
parente9ea36e4d2270bd7d32da12ef6d6e2299641582d (diff)
downloadsamba-012e575e1336fbba70174d32c26ecab9ce5523ce.tar.gz
samba-012e575e1336fbba70174d32c26ecab9ce5523ce.tar.bz2
samba-012e575e1336fbba70174d32c26ecab9ce5523ce.zip
ahh, the joy of deleting large chunks of code that someone else has
painstakingly put in :) This gets rid of most of the #ifdef LARGE_SMB_INO_T ifdefs around DEBUG() statements. We just use %.0f in all cases. Makes the code a bit easier to read :) (This used to be commit 41f0069afc02169932e04ff0039bb6328eaaf04d)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r--source3/locking/locking.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index bd484a18b6..f088720e0a 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -109,13 +109,8 @@ BOOL do_lock(files_struct *fsp,connection_struct *conn,
return False;
}
-#ifdef LARGE_SMB_OFF_T
DEBUG(10,("do_lock: lock type %d start=%.0f len=%.0f requested for file %s\n",
lock_type, (double)offset, (double)count, fsp->fsp_name ));
-#else /* LARGE_SMB_OFF_T */
- DEBUG(10,("do_lock: lock type %d start=%d len=%d requested for file %s\n",
- lock_type, (int)offset, (int)count, fsp->fsp_name ));
-#endif /* LARGE_SMB_OFF_T */
if (OPEN_FSP(fsp) && fsp->can_lock && (fsp->conn == conn))
ok = fcntl_lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,
@@ -141,13 +136,8 @@ BOOL do_unlock(files_struct *fsp,connection_struct *conn,
if (!lp_locking(SNUM(conn)))
return(True);
-#ifdef LARGE_SMB_OFF_T
DEBUG(10,("do_unlock: unlock start=%.0f len=%.0f requested for file %s\n",
(double)offset, (double)count, fsp->fsp_name ));
-#else
- DEBUG(10,("do_unlock: unlock start=%d len=%d requested for file %s\n",
- (int)offset, (int)count, fsp->fsp_name ));
-#endif
if (OPEN_FSP(fsp) && fsp->can_lock && (fsp->conn == conn))
ok = fcntl_lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,F_UNLCK);