From 012e575e1336fbba70174d32c26ecab9ce5523ce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Sep 1998 05:23:29 +0000 Subject: 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) --- source3/lib/util.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source3/lib') 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) -- cgit