Author: jpeach Date: 2007-05-23 20:38:14 +0000 (Wed, 23 May 2007) New Revision: 23096
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23096 Log: Make the lock failure message prettier. Modified: branches/SAMBA_3_0/source/locking/posix.c branches/SAMBA_3_0_26/source/locking/posix.c Changeset: Modified: branches/SAMBA_3_0/source/locking/posix.c =================================================================== --- branches/SAMBA_3_0/source/locking/posix.c 2007-05-23 20:31:28 UTC (rev 23095) +++ branches/SAMBA_3_0/source/locking/posix.c 2007-05-23 20:38:14 UTC (rev 23096) @@ -195,8 +195,8 @@ 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 @@ 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 Modified: branches/SAMBA_3_0_26/source/locking/posix.c =================================================================== --- branches/SAMBA_3_0_26/source/locking/posix.c 2007-05-23 20:31:28 UTC (rev 23095) +++ branches/SAMBA_3_0_26/source/locking/posix.c 2007-05-23 20:38:14 UTC (rev 23096) @@ -195,8 +195,8 @@ 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 @@ 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
