kernel: devwalk: correct debug print

nc is not yet tied to the device that
called us
This commit is contained in:
Jacob Moody 2022-06-14 07:22:58 +00:00
parent 96cc6335db
commit 28709be9a6

View file

@ -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;