diff options
author | rsc <devnull@localhost> | 2005-10-29 17:41:45 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-29 17:41:45 +0000 |
commit | 9614b46f79eb9728806cb322e59b9716f07e8ae0 (patch) | |
tree | e11ebf8fab6cb466695db9dd768f4013ba36a679 /src/libdiskfs | |
parent | 3330e5bf7bb3477d810ac4e2dbe66d0c8b3861aa (diff) | |
download | plan9port-9614b46f79eb9728806cb322e59b9716f07e8ae0.tar.gz plan9port-9614b46f79eb9728806cb322e59b9716f07e8ae0.tar.bz2 plan9port-9614b46f79eb9728806cb322e59b9716f07e8ae0.zip |
compiler warnings.
Diffstat (limited to 'src/libdiskfs')
-rw-r--r-- | src/libdiskfs/ffs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libdiskfs/ffs.c b/src/libdiskfs/ffs.c index f6a87883..3ae65a88 100644 --- 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; |