net: replace some FIXME errors with more useful strings
authorRonald G. Minnich <rminnich@gmail.com>
Thu, 26 Jan 2017 22:13:31 +0000 (14:13 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 27 Jan 2017 16:37:07 +0000 (11:37 -0500)
Change-Id: I3c6318d99a32e99482d6f64ff8419ba662568e7e
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
[typo]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/devip.c

index 8cbaa0e..65c638a 100644 (file)
@@ -471,7 +471,7 @@ static struct chan *ipopen(struct chan *c, int omode)
                        qunlock(&p->qlock);
                        poperror();
                        if (cv == NULL) {
-                               error(ENODEV, ERROR_FIXME);
+                               error(ENODEV, "Null conversation from Fsprotoclone");
                                break;
                        }
                        mkqid(&c->qid, QID(p->x, cv->x, Qctl), 0, QTFILE);
@@ -1633,7 +1633,9 @@ retry:
                if (c == NULL) {
                        c = kzmalloc(sizeof(struct conv), 0);
                        if (c == NULL)
-                               error(ENOMEM, ERROR_FIXME);
+                               error(ENOMEM,
+                                     "conv kzmalloc(%d, 0) failed in Fsprotoclone",
+                                     sizeof(struct conv));
                        qlock_init(&c->qlock);
                        qlock_init(&c->listenq);
                        rendez_init(&c->cr);
@@ -1648,7 +1650,9 @@ retry:
                                c->ptcl = kzmalloc(p->ptclsize, 0);
                                if (c->ptcl == NULL) {
                                        kfree(c);
-                                       error(ENOMEM, ERROR_FIXME);
+                                       error(ENOMEM,
+                                             "ptcl kzmalloc(%d, 0) failed in Fsprotoclone",
+                                             p->ptclsize);
                                }
                        }
                        *pp = c;