From e6594f1a04b2b1f3d0c0e5653c27b5de789c522b Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 22 Apr 2007 13:54:53 +0000 Subject: quieter --- src/cmd/venti/srv/syncarena.c | 23 ++++++++++++----------- src/cmd/venti/srv/syncindex0.c | 2 -- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/venti/srv/syncarena.c b/src/cmd/venti/srv/syncarena.c index be950e95..fe2c7814 100644 --- a/src/cmd/venti/srv/syncarena.c +++ b/src/cmd/venti/srv/syncarena.c @@ -131,21 +131,22 @@ syncarena(Arena *arena, u64int start, u32int n, int zok, int fix) flushdcache(); } -fprint(2, "arena %s: start=%lld fix=%d flush=%d %lld->%lld %ud->%ud %ud->%ud %lld->%lld\n", - arena->name, - start, - fix, - flush, - used, arena->memstats.used, - clumps, arena->memstats.clumps, - cclumps, arena->memstats.cclumps, - uncsize, arena->memstats.uncsize); - if(used != arena->memstats.used || clumps != arena->memstats.clumps || cclumps != arena->memstats.cclumps - || uncsize != arena->memstats.uncsize) + || uncsize != arena->memstats.uncsize){ err |= SyncHeader; + fprint(2, "arena %s: start=%lld fix=%d flush=%d %lld->%lld %ud->%ud %ud->%ud %lld->%lld\n", + arena->name, + start, + fix, + flush, + used, arena->memstats.used, + clumps, arena->memstats.clumps, + cclumps, arena->memstats.cclumps, + uncsize, arena->memstats.uncsize); + } + return err; } diff --git a/src/cmd/venti/srv/syncindex0.c b/src/cmd/venti/srv/syncindex0.c index 1a6aa7d3..6a008bad 100644 --- a/src/cmd/venti/srv/syncindex0.c +++ b/src/cmd/venti/srv/syncindex0.c @@ -157,12 +157,10 @@ syncindex(Index *ix, int fix, int mustflush, int check) fix, &flush, check); if(ok1 < 0) fprint(2, "syncarenaindex: %r\n"); -fprint(2, "arena %s: wbarena in syncindex\n", arena->name); if(fix && ok1==0 && (e & SyncHeader) && wbarena(arena) < 0) fprint(2, "arena=%s header write failed: %r\n", arena->name); ok |= ok1; -fprint(2, "arena %s: setdcachestate\n", arena->name); as.arena = arena; as.aa = ix->amap[i].start + arena->memstats.used; as.stats = arena->memstats; -- cgit v1.2.3