| tventi: fix format on ulong - plan9port - [fork] Plan 9 from user space | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 36c242dd868672ae9c6705622ef1e7dbb84dbbac | |
| parent 11758776a1be725491395b59d52074e7f6fb6f82 | |
| Author: David du Colombier <[email protected]> | |
| Date: Tue, 8 Nov 2011 09:02:28 -0500 | |
| venti: fix format on ulong | |
| R=rsc | |
| CC=plan9port.codebot | |
| http://codereview.appspot.com/5328046 | |
| Diffstat: | |
| M src/cmd/venti/dump.c | 4 ++-- | |
| M src/libventi/entry.c | 2 +- | |
| M src/libventi/file.c | 2 +- | |
| M src/libventi/root.c | 2 +- | |
| 4 files changed, 5 insertions(+), 5 deletions(-) | |
| --- | |
| diff --git a/src/cmd/venti/dump.c b/src/cmd/venti/dump.c | |
| t@@ -50,7 +50,7 @@ dump(int indent, uchar *score, int type) | |
| Bprint(&bout, "%.*serror unpacking root %V: %r\n", ind… | |
| goto out; | |
| } | |
| - Bprint(&bout, "%.*s%V root name=%s type=%s prev=%V bsize=%d\n", | |
| + Bprint(&bout, "%.*s%V root name=%s type=%s prev=%V bsize=%ld\n… | |
| indent*4, spaces, score, root.name, root.type, root.pr… | |
| dump(indent+1, root.score, VtDirType); | |
| break; | |
| t@@ -62,7 +62,7 @@ dump(int indent, uchar *score, int type) | |
| Bprint(&bout, "%.*s%d: cannot unpack\n", inden… | |
| continue; | |
| } | |
| - Bprint(&bout, "%.*s%d: gen=%#lux psize=%d dsize=%d typ… | |
| + Bprint(&bout, "%.*s%d: gen=%#lux psize=%ld dsize=%ld t… | |
| (indent+1)*4, spaces, i, e.gen, e.psize, e.dsi… | |
| dump(indent+2, e.score, e.type); | |
| } | |
| diff --git a/src/libventi/entry.c b/src/libventi/entry.c | |
| t@@ -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,… | |
| + sysfatal("invalid entry psize/dsize: %ld/%ld", e->psiz… | |
| } | |
| U16PUT(p, psize); | |
| p += 2; | |
| diff --git a/src/libventi/file.c b/src/libventi/file.c | |
| t@@ -67,7 +67,7 @@ vtfilealloc(VtCache *c, VtBlock *b, VtFile *p, u32int offset… | |
| } | |
| 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 | |
| t@@ -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; |