summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-01-27 19:59:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:17 -0500
commit6f08a557bae46eb9a2f992dfcdc6c1954f55c703 (patch)
tree4d99b1710f9d158ceed03f2f6c87065fa68ca5e8 /source3/locking
parent6a097ab20ea54a7b090ad6e62c1538d5e5997f31 (diff)
downloadsamba-6f08a557bae46eb9a2f992dfcdc6c1954f55c703.tar.gz
samba-6f08a557bae46eb9a2f992dfcdc6c1954f55c703.tar.bz2
samba-6f08a557bae46eb9a2f992dfcdc6c1954f55c703.zip
r13194: Don't do extra memcpy's unless we're asked to.
Jeremy. (This used to be commit f93e1e75563679dc07958168b283dfc0eb2de5b0)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 770ef918b8..be1e83121b 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -547,7 +547,11 @@ static TDB_DATA unparse_share_modes(struct share_mode_lock *lck)
offset += sp_len + 1;
safe_strcpy(result.dptr + offset, lck->filename,
result.dsize - offset - 1);
- print_share_mode_table(data);
+
+ if (DEBUGLEVEL >= 10) {
+ print_share_mode_table(data);
+ }
+
return result;
}