kernel: devwalk: correct debug print
nc is not yet tied to the device that called us
This commit is contained in:
parent
96cc6335db
commit
28709be9a6
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ devwalk(Chan *c, Chan *nc, char **name, int nname, Dirtab *tab, int ntab, Devgen
|
|||
if(strcmp(n, "..") == 0){
|
||||
if((*gen)(nc, nil, tab, ntab, DEVDOTDOT, &dir) != 1){
|
||||
print("devgen walk .. in dev%s %llux broken\n",
|
||||
devtab[nc->type]->name, nc->qid.path);
|
||||
devtab[c->type]->name, c->qid.path);
|
||||
error("broken devgen");
|
||||
}
|
||||
nc->qid = dir.qid;
|
||||
|
|
Loading…
Reference in a new issue