summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-05 01:26:52 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-05 01:26:52 +0000
commit044b5690066a6673ee78b1fae6bffda9bd6afbc4 (patch)
treec1dcf8ec949a1b8345fc63878d087862756e99e2 /source3
parent8ea45ac5ced9cd45cc082a736532b5f771635810 (diff)
downloadsamba-044b5690066a6673ee78b1fae6bffda9bd6afbc4.tar.gz
samba-044b5690066a6673ee78b1fae6bffda9bd6afbc4.tar.bz2
samba-044b5690066a6673ee78b1fae6bffda9bd6afbc4.zip
make debug easier to read
(This used to be commit c14a2616441b2f3357a081c6dbae7d5b677e5a12)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/locktest.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/utils/locktest.c b/source3/utils/locktest.c
index 106fce8063..04eb28b236 100644
--- a/source3/utils/locktest.c
+++ b/source3/utils/locktest.c
@@ -87,10 +87,10 @@ static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid,
}
#endif
- printf("%6d %05x:%05x %s %9.0f %9.0f %9.0f\n",
+ printf("%6d %05x:%05x %s %.0f:%.0f(%.0f)\n",
(int)pid, (int)dev, (int)ino,
lock_type==READ_LOCK?"R":"W",
- (double)start, (double)size, (double)start+size);
+ (double)start, (double)start+size-1,(double)size);
}
@@ -250,8 +250,10 @@ static BOOL test_one(struct cli_state *cli[2][2],
fnum[1][conn][f],
start, len, LOCK_TIMEOUT, op);
if (showall || ret1 != ret2) {
- printf("lock conn=%d f=%d range=%d:%d op=%s -> %d:%d\n",
- conn, f, start, len, op==READ_LOCK?"READ_LOCK":"WRITE_LOCK",
+ printf("lock conn=%d f=%d range=%d:%d(%d) op=%s -> %d:%d\n",
+ conn, f,
+ start, start+len-1, len,
+ op==READ_LOCK?"READ_LOCK":"WRITE_LOCK",
ret1, ret2);
}
if (showall) brl_forall(print_brl);
@@ -265,8 +267,9 @@ static BOOL test_one(struct cli_state *cli[2][2],
fnum[1][conn][f],
start, len);
if (showall || ret1 != ret2) {
- printf("unlock conn=%d f=%d %d:%d -> %d:%d\n",
- conn, f, start, len,
+ printf("unlock conn=%d f=%d range=%d:%d(%d) -> %d:%d\n",
+ conn, f,
+ start, start+len-1, len,
ret1, ret2);
}
if (showall) brl_forall(print_brl);