summaryrefslogtreecommitdiff
path: root/sys/src/9/port
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-06-14 07:22:58 +0000
committerJacob Moody <moody@posixcafe.org>2022-06-14 07:22:58 +0000
commit28709be9a68beaff12f7227f49fae1fc49be0660 (patch)
treeef9d055698ab20d5f49f3eecea5a71b2e91fbb95 /sys/src/9/port
parent96cc6335db6c2cd288f19ad09f69e8304e1cfd62 (diff)
kernel: devwalk: correct debug print
nc is not yet tied to the device that called us
Diffstat (limited to 'sys/src/9/port')
-rw-r--r--sys/src/9/port/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/dev.c b/sys/src/9/port/dev.c
index 185d7ffd0..6d6e157fc 100644
--- a/sys/src/9/port/dev.c
+++ b/sys/src/9/port/dev.c
@@ -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;