Be a bit more informative when we panic trying to pull up.
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 23 Sep 2014 19:53:16 +0000 (19:53 +0000)
committerRonald G. Minnich <rminnich@gmail.com>
Tue, 23 Sep 2014 19:53:16 +0000 (19:53 +0000)
The former message was utterly useless.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
kern/src/ns/qio.c

index 8e5de8e..3b5428b 100644 (file)
@@ -263,7 +263,8 @@ struct block *pullupblock(struct block *bp, int n)
        if (bp->extra_len) {
                if (n > bp->lim - bp->rp) {
                        /* would need to realloc a new block and copy everything over. */
        if (bp->extra_len) {
                if (n > bp->lim - bp->rp) {
                        /* would need to realloc a new block and copy everything over. */
-                       panic("can't pullup, no place to put it\n");
+                       panic("can't pullup %d bytes, no place to put it: bp->lim %p, bp->rp %p, bp->lim-bp->rp %d\n",
+                                       n, bp->lim, bp->rp, bp->lim-bp->rp);
                }
                len = n - BHLEN(bp);
                if (len > bp->extra_len)
                }
                len = n - BHLEN(bp);
                if (len > bp->extra_len)