diff options
author | Austin Clements <[email protected]> | 2011-09-02 15:11:52 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2011-09-02 15:11:52 -0400 |
commit | 7fb21193b063841d53d56b1a33b7ee455fd2a0ae (patch) | |
tree | bcab5538401edb927898654c1d594d0d32c42fbf | |
parent | ee1b33065cccc798f502a25d2d741c49a86f63a6 (diff) | |
download | xv6-labs-7fb21193b063841d53d56b1a33b7ee455fd2a0ae.tar.gz xv6-labs-7fb21193b063841d53d56b1a33b7ee455fd2a0ae.tar.bz2 xv6-labs-7fb21193b063841d53d56b1a33b7ee455fd2a0ae.zip |
Remove comment debug prints from log.c; now fits nicely in a spread
-rw-r--r-- | log.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -71,8 +71,6 @@ install_trans(void) { int tail; - //if (log.lh.n > 0) - // cprintf("install_trans %d\n", log.lh.n); for (tail = 0; tail < log.lh.n; tail++) { struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block struct buf *dbuf = bread(log.dev, log.lh.sector[tail]); // read dst @@ -95,17 +93,12 @@ read_head(void) log.lh.sector[i] = lh->sector[i]; } brelse(buf); - //if (log.lh.n > 0) - // cprintf("read_head: %d\n", log.lh.n); } // Write in-memory log header to disk, committing log entries till head static void write_head(void) { - // if (log.lh.n > 0) - // cprintf("write_head: %d\n", log.lh.n); - struct buf *buf = bread(log.dev, log.start); struct logheader *hb = (struct logheader *) (buf->data); int i; @@ -171,8 +164,6 @@ log_write(struct buf *b) if (!log.intrans) panic("write outside of trans"); - // cprintf("log_write: %d %d\n", b->sector, log.lh.n); - for (i = 0; i < log.lh.n; i++) { if (log.lh.sector[i] == b->sector) // log absorbtion? break; |