summaryrefslogtreecommitdiff
path: root/source3/lib
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/lib
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/lib')
-rw-r--r--source3/lib/util.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index ad84b17943..56d2aec9cb 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2039,11 +2039,7 @@ SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n,char *header,int headlen,
char *buf1,*abuf;
SMB_OFF_T total = 0;
-#ifdef LARGE_SMB_OFF_T
DEBUG(4,("transfer_file n=%.0f (head=%d) called\n",(double)n,headlen));
-#else /* LARGE_SMB_OFF_T */
- DEBUG(4,("transfer_file n=%d (head=%d) called\n",(int)n,headlen));
-#endif /* LARGE_SMB_OFF_T */
if (size == 0) {
size = lp_readsize();
@@ -4508,11 +4504,7 @@ BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
}
}
-#ifdef LARGE_SMB_OFF_T
DEBUG(8,("fcntl_lock %d %d %.0f %.0f %d\n",fd,op,(double)offset,(double)count,type));
-#else
- DEBUG(8,("fcntl_lock %d %d %d %d %d\n",fd,op,(int)offset,(int)count,type));
-#endif
lock.l_type = type;
lock.l_whence = SEEK_SET;
@@ -4546,13 +4538,8 @@ BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
/* a lock set or unset */
if (ret == -1)
{
-#ifdef LARGE_SMB_OFF_T
DEBUG(3,("lock failed at offset %.0f count %.0f op %d type %d (%s)\n",
(double)offset,(double)count,op,type,strerror(errno)));
-#else
- DEBUG(3,("lock failed at offset %d count %d op %d type %d (%s)\n",
- (int)offset,(int)count,op,type,strerror(errno)));
-#endif
/* perhaps it doesn't support this sort of locking?? */
if (errno == EINVAL)