fix typos in user/usertest.c & kernel/log.c
This commit is contained in:
parent
9655f71758
commit
8d4ff0bc1e
|
@ -223,7 +223,7 @@ log_write(struct buf *b)
|
||||||
panic("log_write outside of trans");
|
panic("log_write outside of trans");
|
||||||
|
|
||||||
for (i = 0; i < log.lh.n; i++) {
|
for (i = 0; i < log.lh.n; i++) {
|
||||||
if (log.lh.block[i] == b->blockno) // log absorbtion
|
if (log.lh.block[i] == b->blockno) // log absorption
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
log.lh.block[i] = b->blockno;
|
log.lh.block[i] = b->blockno;
|
||||||
|
|
|
@ -1372,7 +1372,7 @@ linktest(char *s)
|
||||||
|
|
||||||
unlink("lf2");
|
unlink("lf2");
|
||||||
if(link("lf2", "lf1") >= 0){
|
if(link("lf2", "lf1") >= 0){
|
||||||
printf("%s: link non-existant succeeded! oops\n", s);
|
printf("%s: link non-existent succeeded! oops\n", s);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2366,7 +2366,7 @@ validatetest(char *s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// does unintialized data start out zero?
|
// does uninitialized data start out zero?
|
||||||
char uninit[10000];
|
char uninit[10000];
|
||||||
void
|
void
|
||||||
bsstest(char *s)
|
bsstest(char *s)
|
||||||
|
|
Loading…
Reference in a new issue