From: James Peach Date: Wed, 23 May 2007 20:38:14 +0000 (+0000) Subject: r23096: Make the lock failure message prettier. X-Git-Tag: samba-4.0.0alpha6~801^2~5798 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38daf36d124fbec74afba3a834481001d8000bc6;p=thirdparty%2Fsamba.git r23096: Make the lock failure message prettier. (This used to be commit 853f41edb8b23d7fdfaba9c4bb37dc27af92a982) --- diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 8bb7f605e35..338ee0416b7 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -195,8 +195,8 @@ static BOOL posix_fcntl_lock(files_struct *fsp, int op, SMB_OFF_T offset, SMB_OF DEBUG(0,("posix_fcntl_lock: WARNING: lock request at offset %.0f, length %.0f returned\n", (double)offset,(double)count)); - DEBUG(0,("an %s error. This can happen when using 64 bit lock offsets\n", strerror(errno))); - DEBUG(0,("on 32 bit NFS mounted file systems.\n")); + DEBUGADD(0,("an %s error. This can happen when using 64 bit lock offsets\n", strerror(errno))); + DEBUGADD(0,("on 32 bit NFS mounted file systems.\n")); /* * If the offset is > 0x7FFFFFFF then this will cause problems on @@ -240,8 +240,8 @@ static BOOL posix_fcntl_getlock(files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T DEBUG(0,("posix_fcntl_getlock: WARNING: lock request at offset %.0f, length %.0f returned\n", (double)*poffset,(double)*pcount)); - DEBUG(0,("an %s error. This can happen when using 64 bit lock offsets\n", strerror(errno))); - DEBUG(0,("on 32 bit NFS mounted file systems.\n")); + DEBUGADD(0,("an %s error. This can happen when using 64 bit lock offsets\n", strerror(errno))); + DEBUGADD(0,("on 32 bit NFS mounted file systems.\n")); /* * If the offset is > 0x7FFFFFFF then this will cause problems on