summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Wu <[email protected]>2017-04-26 19:56:51 -0700
committerGitHub <[email protected]>2017-04-26 19:56:51 -0700
commit61f26e3c9770371dd7a5477d79fdf031ba4738c4 (patch)
tree4fe29aeb40dd59bc46983168376c2178545cf511
parent59cdd6c63b89395d64ec9550181af5ed569b8466 (diff)
downloadxv6-labs-61f26e3c9770371dd7a5477d79fdf031ba4738c4.tar.gz
xv6-labs-61f26e3c9770371dd7a5477d79fdf031ba4738c4.tar.bz2
xv6-labs-61f26e3c9770371dd7a5477d79fdf031ba4738c4.zip
Fix typo in dirlookup
-rw-r--r--fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs.c b/fs.c
index be8c5c5..f27ae6f 100644
--- a/fs.c
+++ b/fs.c
@@ -518,7 +518,7 @@ dirlookup(struct inode *dp, char *name, uint *poff)
for(off = 0; off < dp->size; off += sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
- panic("dirlink read");
+ panic("dirlookup read");
if(de.inum == 0)
continue;
if(namecmp(name, de.name) == 0){