summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-31 15:39:25 -0400
committerRobert Morris <[email protected]>2010-08-31 15:39:25 -0400
commit8d774afb2d45592d85725474a704ac99b0624d2c (patch)
tree5a745a3a37c9bed426f27d72f151de48ac3bcaa1 /mkfs.c
parent880ee18ab14477b669a6b95707721322bfe086c1 (diff)
downloadxv6-labs-8d774afb2d45592d85725474a704ac99b0624d2c.tar.gz
xv6-labs-8d774afb2d45592d85725474a704ac99b0624d2c.tar.bz2
xv6-labs-8d774afb2d45592d85725474a704ac99b0624d2c.zip
no more pminit, or ELF header at 0x10000
kinit() knows about end and PHYSTOP map all of kernel read/write (rather than r/o instructions) thanks, austin
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs.c b/mkfs.c
index a970b5c..3a3c62a 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
usedblocks = ninodes / IPB + 3 + bitblocks;
freeblock = usedblocks;
- printf("used %d (bit %d ninode %u) free %u total %d\n", usedblocks,
+ printf("used %d (bit %d ninode %lu) 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 %u\n", ninodes/IPB + 3);
+ printf("balloc: write bitmap block at sector %lu\n", ninodes/IPB + 3);
wsect(ninodes / IPB + 3, buf);
}