diff options
author | Austin Clements <[email protected]> | 2010-08-31 15:11:10 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2010-08-31 15:11:10 -0400 |
commit | 880ee18ab14477b669a6b95707721322bfe086c1 (patch) | |
tree | 96cf811473ab763ed146201711cc9e6e70909c2f /mkfs.c | |
parent | 1e8035be535781e2b317881ab421ac33c7de0299 (diff) | |
download | xv6-labs-880ee18ab14477b669a6b95707721322bfe086c1.tar.gz xv6-labs-880ee18ab14477b669a6b95707721322bfe086c1.tar.bz2 xv6-labs-880ee18ab14477b669a6b95707721322bfe086c1.zip |
mkfs must be compiled 32-bit. Fix mkfs warnings
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ main(int argc, char *argv[]) usedblocks = ninodes / IPB + 3 + bitblocks; freeblock = usedblocks; - printf("used %d (bit %d ninode %lu) free %u total %d\n", usedblocks, + printf("used %d (bit %d ninode %u) free %u total %d\n", usedblocks, bitblocks, ninodes/IPB + 1, freeblock, nblocks+usedblocks); assert(nblocks + usedblocks == size); @@ -230,7 +230,7 @@ balloc(int used) for(i = 0; i < used; i++) { buf[i/8] = buf[i/8] | (0x1 << (i%8)); } - printf("balloc: write bitmap block at sector %lu\n", ninodes/IPB + 3); + printf("balloc: write bitmap block at sector %u\n", ninodes/IPB + 3); wsect(ninodes / IPB + 3, buf); } |