plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 9614b46f79eb9728806cb322e59b9716f07e8ae0
parent 3330e5bf7bb3477d810ac4e2dbe66d0c8b3861aa
Author: rsc <devnull@localhost>
Date:   Sat, 29 Oct 2005 17:41:45 +0000

compiler warnings.

Diffstat:
Msrc/libdiskfs/ffs.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libdiskfs/ffs.c b/src/libdiskfs/ffs.c @@ -98,11 +98,12 @@ ffssync(Fsys *fsys) /* * Read super block. */ + b = nil; for(i=0; i<nelem(off); i++){ if((b = diskread(disk, SBSIZE, off[i])) == nil) goto error; fsblk = (Fsblk*)b->data; - fprint(2, "offset of magic: %d\n", offsetof(Fsblk, magic)); + fprint(2, "offset of magic: %ld\n", offsetof(Fsblk, magic)); if((fs->ufs = checkfsblk(fsblk)) > 0) goto okay; blockput(b); @@ -293,7 +294,7 @@ ffsdatablock(Ffs *fs, u64int bno, int size) fsize = fs->fragsize; if(bno >= fs->nfrag){ - fprint(2, "ffs: request for block %#lux; nfrag %#x\n", (ulong)bno, fs->nfrag); + fprint(2, "ffs: request for block %#lux; nfrag %#llux\n", (ulong)bno, fs->nfrag); return nil; } diskaddr = (u64int)bno*fs->fragsize;