From: compudj Date: Fri, 16 Dec 2005 20:32:46 +0000 (+0000) Subject: compile fixes X-Git-Tag: 0.80~204 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e4bed64a5659be6152ed2ae3ac3f2c35881ffa33;p=ltt-control.git compile fixes git-svn-id: http://ltt.polymtl.ca/svn@1402 04897980-b3bd-0310-b5e0-8ef037075253 --- 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) {