From e4bed64a5659be6152ed2ae3ac3f2c35881ffa33 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 16 Dec 2005 20:32:46 +0000 Subject: [PATCH] compile fixes git-svn-id: http://ltt.polymtl.ca/svn@1402 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttd/lttd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/lttd/lttd.c b/ltt/branches/poly/lttd/lttd.c index 3a2fdd3..4f5f4bc 100644 --- a/ltt/branches/poly/lttd/lttd.c +++ b/ltt/branches/poly/lttd/lttd.c @@ -311,7 +311,8 @@ int read_subbuffer(struct fd_pair *pair) } err = TEMP_FAILURE_RETRY(write(pair->trace, - pair->mmap + (consumed_old & (~(pair->subbuf_size-1))), + pair->mmap + + (consumed_old & ((pair->n_subbufs * pair->subbuf_size)-1)), pair->subbuf_size)); if(err < 0) { -- 2.34.1