diff options
author | FIXED-TERM Chen Ian (BT-CO/QMM5) <[email protected]> | 2021-05-18 11:29:42 +0800 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2021-08-31 14:10:14 -0400 |
commit | 8d4ff0bc1e8e7750e17fae39572fa5996cb9f5e9 (patch) | |
tree | ad8c50b5ce5934a5299496e721292e9ac8651a8d | |
parent | 9655f71758003f93294e82926783024a7e4bcdde (diff) | |
download | xv6-labs-8d4ff0bc1e8e7750e17fae39572fa5996cb9f5e9.tar.gz xv6-labs-8d4ff0bc1e8e7750e17fae39572fa5996cb9f5e9.tar.bz2 xv6-labs-8d4ff0bc1e8e7750e17fae39572fa5996cb9f5e9.zip |
fix typos in user/usertest.c & kernel/log.c
-rw-r--r-- | kernel/log.c | 2 | ||||
-rw-r--r-- | user/usertests.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/log.c b/kernel/log.c index 2c0063a..5b58306 100644 --- a/kernel/log.c +++ b/kernel/log.c @@ -223,7 +223,7 @@ log_write(struct buf *b) panic("log_write outside of trans"); 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; } log.lh.block[i] = b->blockno; diff --git a/user/usertests.c b/user/usertests.c index 7d53099..38c81f1 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -1372,7 +1372,7 @@ linktest(char *s) unlink("lf2"); 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); } @@ -2366,7 +2366,7 @@ validatetest(char *s) } } -// does unintialized data start out zero? +// does uninitialized data start out zero? char uninit[10000]; void bsstest(char *s) |