aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2011-11-08 09:02:28 -0500
committerRuss Cox <rsc@swtch.com>2011-11-08 09:02:28 -0500
commit36c242dd868672ae9c6705622ef1e7dbb84dbbac (patch)
tree4eba2a8dbc55dddba2ee3b4660b4cbcadcc76ffd /src/libventi
parent11758776a1be725491395b59d52074e7f6fb6f82 (diff)
downloadplan9port-36c242dd868672ae9c6705622ef1e7dbb84dbbac.tar.gz
plan9port-36c242dd868672ae9c6705622ef1e7dbb84dbbac.tar.bz2
plan9port-36c242dd868672ae9c6705622ef1e7dbb84dbbac.zip
venti: fix format on ulong
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5328046
Diffstat (limited to 'src/libventi')
-rw-r--r--src/libventi/entry.c2
-rw-r--r--src/libventi/file.c2
-rw-r--r--src/libventi/root.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libventi/entry.c b/src/libventi/entry.c
index 6485714a..5e9a7c1f 100644
--- a/src/libventi/entry.c
+++ b/src/libventi/entry.c
@@ -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;
diff --git a/src/libventi/file.c b/src/libventi/file.c
index ebd71998..ec9c1b7e 100644
--- a/src/libventi/file.c
+++ b/src/libventi/file.c
@@ -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;
diff --git a/src/libventi/root.c b/src/libventi/root.c
index b1a153d5..2627ee81 100644
--- a/src/libventi/root.c
+++ b/src/libventi/root.c
@@ -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;