From f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 2 Jun 2011 09:33:56 -0400 Subject: venti: import changes from plan 9 R=rsc CC=plan9port.codebot http://codereview.appspot.com/4523057 --- src/cmd/venti/srv/wrarena.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd/venti/srv/wrarena.c') diff --git a/src/cmd/venti/srv/wrarena.c b/src/cmd/venti/srv/wrarena.c index 9308ca88..fee8e427 100644 --- a/src/cmd/venti/srv/wrarena.c +++ b/src/cmd/venti/srv/wrarena.c @@ -75,7 +75,7 @@ rdarena(Arena *arena, u64int offset) e = arena->base + arena->size; if(offset != ~(u64int)0) { if(offset >= e - a) - sysfatal("bad offset %#llx >= %#llx\n", offset, e - a); + sysfatal("bad offset %#llx >= %#llx", offset, e - a); aa = offset; } else aa = 0; @@ -87,8 +87,8 @@ rdarena(Arena *arena, u64int offset) break; if(a < aa || ci.type == VtCorruptType){ if(ci.type == VtCorruptType) - fprint(2, "corrupt at %#llx: +%d\n", - a, ClumpSize+ci.size); + fprint(2, "%s: corrupt clump read at %#llx: +%d\n", + argv0, a, ClumpSize+ci.size); continue; } lump = loadclump(arena, a, 0, &cl, score, 0); @@ -187,7 +187,7 @@ threadmain(int argc, char *argv[]) sysfatal("corrupted arena header: %r"); if(aoffset+head.size > part->size) - sysfatal("arena is truncated: want %llud bytes have %llud\n", + sysfatal("arena is truncated: want %llud bytes have %llud", head.size, part->size); partblocksize(part, head.blocksize); -- cgit v1.2.3