venti: fix format on ulong

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5328046
This commit is contained in:
David du Colombier 2011-11-08 09:02:28 -05:00 committed by Russ Cox
parent 11758776a1
commit 36c242dd86
4 changed files with 5 additions and 5 deletions

View file

@ -63,7 +63,7 @@ vtentrypack(VtEntry *e, uchar *p, int index)
psize = vttobig(psize);
dsize = vttobig(dsize);
if(psize < 0 || dsize < 0)
sysfatal("invalid entry psize/dsize: %d/%d", e->psize, e->dsize);
sysfatal("invalid entry psize/dsize: %ld/%ld", e->psize, e->dsize);
}
U16PUT(p, psize);
p += 2;

View file

@ -67,7 +67,7 @@ vtfilealloc(VtCache *c, VtBlock *b, VtFile *p, u32int offset, int mode)
}
if(DEPTH(e.type) < sizetodepth(e.size, e.psize, e.dsize)){
fprint(2, "depth %ud size %llud psize %ud dsize %ud\n",
fprint(2, "depth %ud size %llud psize %lud dsize %lud\n",
DEPTH(e.type), e.size, e.psize, e.dsize);
werrstr("bad depth");
return nil;

View file

@ -27,7 +27,7 @@ vtrootpack(VtRoot *r, uchar *p)
vers |= _VtRootVersionBig;
bsize = vttobig(bsize);
if(bsize < 0)
sysfatal("invalid root blocksize: %#x", r->blocksize);
sysfatal("invalid root blocksize: %#lx", r->blocksize);
}
U16PUT(p, vers);
p += 2;