ref: 28709be9a68beaff12f7227f49fae1fc49be0660
parent: 96cc6335db6c2cd288f19ad09f69e8304e1cfd62
author: Jacob Moody <moody@posixcafe.org>
date: Tue Jun 14 03:22:58 EDT 2022
kernel: devwalk: correct debug print nc is not yet tied to the device that called us
--- a/sys/src/9/port/dev.c
+++ b/sys/src/9/port/dev.c
@@ -262,7 +262,7 @@
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;