ref: 5438a58a546f119dd7d1fbc1c6b39b2c9814305d
parent: a21c8d0216dc5b89f12975f17c1c5e626aa46eb3
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;
--
⑨