compile fixes
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Dec 2005 20:32:46 +0000 (20:32 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Dec 2005 20:32:46 +0000 (20:32 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1402 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttd/lttd.c

index 3a2fdd3f5bec004318a651d2941d3c91f490ac67..4f5f4bc421d19d27a24b273d028a7bf53b5641ea 100644 (file)
@@ -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) {
This page took 0.023483 seconds and 4 git commands to generate.