DEBUG_PRINTF
#ifndef DEBUG_PRINTF
DEBUG_PRINTF(2, ("load_key_id(%s): %s\n", keyID, key ? "found" : "nope"));
DEBUG_PRINTF(2, ("rc=%d keyID=%s\n", rc, sig->key_id ? sig->key_id : "?"));
DEBUG_PRINTF(2,
DEBUG_PRINTF(2,
DEBUG_PRINTF(3,
DEBUG_PRINTF(3,
DEBUG_PRINTF(3,
DEBUG_PRINTF(3, ("%s: SEEK_END %ld\n",
DEBUG_PRINTF(2,
DEBUG_PRINTF(4, ("inserted %zu %s at head\n",
DEBUG_PRINTF(4, ("inserted %zu %s before %zu %s\n",
DEBUG_PRINTF(4, ("inserted %zu %s after %zu %s\n",
DEBUG_PRINTF(3, ("maybe: %.48s\n", tp));
DEBUG_PRINTF(2, ("looking for %s %zu %s\n", prefix, plen, cp));
DEBUG_PRINTF(4, ("at %zu %s\n",
DEBUG_PRINTF(3, ("skipping prefix=%s %zu %zu\n",
DEBUG_PRINTF(3, (
DEBUG_PRINTF(3, (
DEBUG_PRINTF(3, ("checking prefix=%s\n",
DEBUG_PRINTF(3, ("lookup: '%s'\n", np));
DEBUG_PRINTF(3,
DEBUG_PRINTF(2, ("found %.78s\n", fp));
DEBUG_PRINTF(3,
DEBUG_PRINTF(4, ("%s: dev=%lld,ino=%llu,status=%d\n",
DEBUG_PRINTF(4, ("%s: dev=%lld,ino=%llu,status=%d\n",
DEBUG_PRINTF(3, ("loaded: %s %s %s\n",
DEBUG_PRINTF(5, ("looking for %s\n", buf));
DEBUG_PRINTF(3, ("revoked %d trust anchors\n",
DEBUG_PRINTF(3, ("added %d trust anchors\n",
DEBUG_PRINTF(2,
DEBUG_PRINTF(1,
DEBUG_PRINTF(1,
DEBUG_PRINTF(5, ("verify_signed: %s\n", buf));
DEBUG_PRINTF(5, ("Self tests...\n"));
DEBUG_PRINTF(2, ("Set ve_utc=%jd\n", (intmax_t)utc));
DEBUG_PRINTF(5, ("verify_signer: %zu certs in chain\n", num));
DEBUG_PRINTF(5, ("verify_signer: %zu trust anchors\n",
DEBUG_PRINTF(5, ("verify_sig: %s\n", sigfile));
DEBUG_PRINTF(1,("%s: netif_open() succeeded %#x\n",
DEBUG_PRINTF(1,("%s: netproto=%d\n", __func__, netproto));
DEBUG_PRINTF(2,("%s: opens=%d\n", __func__, netdev_opens));
DEBUG_PRINTF(1,("%s: calling netif_close()\n", __func__));
DEBUG_PRINTF(1,("%s: BOOTP failed, trying RARP/RPC...\n", __func__));
DEBUG_PRINTF(1,("%s: client name: %s\n", __func__, hostname));
DEBUG_PRINTF(1,("%s: subnet mask: %s\n", __func__,
DEBUG_PRINTF(1,("%s: net gateway: %s\n", __func__,
DEBUG_PRINTF(1,("%s: proto: %d\n", __func__, netproto));
DEBUG_PRINTF(1,("%s: server addr: %s\n", __func__, inet_ntoa(rootip)));
DEBUG_PRINTF(1,("%s: server port: %d\n", __func__, rootport));
DEBUG_PRINTF(1,("%s: server path: %s\n", __func__, rootpath));
DEBUG_PRINTF(1,("rootpath=%s addr=%#x\n",
DEBUG_PRINTF(1,("ip=%s addr=%#x\n",
DEBUG_PRINTF(1,("%s: vectx_close(%s): %d\n", __func__,
DEBUG_PRINTF(1, ("bootp: socket=%d\n", sock));
DEBUG_PRINTF(1, ("bootp: socktodesc=%lx\n", (long)d));
DEBUG_PRINTF(1, ("'native netmask' is %s\n", intoa(netmask)));
DEBUG_PRINTF(1,("rootip: %s\n", inet_ntoa(rootip)));
DEBUG_PRINTF(1,("mask: %s\n", intoa(netmask)));
DEBUG_PRINTF(1,("need gateway for root ip\n"));
DEBUG_PRINTF(1,("gateway ip (%s) bad\n", inet_ntoa(gateip)));
DEBUG_PRINTF(1,("bootpsend: d=%lx called.\n", (long)d));
DEBUG_PRINTF(1,("bootpsend: calling sendudp\n"));
DEBUG_PRINTF(1,("bootp_recvoffer: called\n"));
DEBUG_PRINTF(1,("bootprecv: checked. bp = %p, n = %zd\n", bp, n));
DEBUG_PRINTF(1,("bootprecv: expected xid 0x%lx, got 0x%x\n",
DEBUG_PRINTF(1,("bootprecv: got one!\n"));
DEBUG_PRINTF(1,("vend_rfc1048 bootp info. len=%d\n", len));
DEBUG_PRINTF(1,("vend_cmu bootp info.\n"));
DEBUG_PRINTF(1, ("%s: short hdr or bad cksum.\n", __func__));
DEBUG_PRINTF(1, ("readip: bad length %zd < %d.\n",
DEBUG_PRINTF(1, ("%s: not for us: saddr %s (%d) != %s (%d)\n",
DEBUG_PRINTF(1, ("%s: unfragmented saddr %s:%d -> %s:%d\n",
DEBUG_PRINTF(1, ("%s: new reassembly ID=%d %s -> %s\n",
DEBUG_PRINTF(1, ("%s: need more fragments %d %s -> ",
DEBUG_PRINTF(1, ("%s offset=%d MF=%d\n",
DEBUG_PRINTF(1, ("%s: need more fragments %d %s -> ",
DEBUG_PRINTF(1, ("%s offset=%d MF=%d\n",
DEBUG_PRINTF(1, ("%s: completed fragments ID=%d %s -> %s\n",
DEBUG_PRINTF(1, ("%s: ARP request\n", __func__));
DEBUG_PRINTF(1, ("%s: IP version or proto. "
DEBUG_PRINTF(1, ("%s: timeout\n", __func__));
DEBUG_PRINTF(1, ("sendip: proto: %x d=%p called.\n", proto, (void *)d));
DEBUG_PRINTF(1, ("saddr: %s:%d daddr: %s:%d\n",
DEBUG_PRINTF(1,("%s: fs=%s path=%s\n",
DEBUG_PRINTF(0, ("%s(%s: '%s') -> %d (error=%d)\n", __func__,
DEBUG_PRINTF(1, ("%s: found %s type %c\n", __func__,
DEBUG_PRINTF(1, ("%s(%s)\n", __func__, tf->tf_hdr.ut_name));
DEBUG_PRINTF(4, ("%s(%s,%zd)\n", __func__, tf->tf_hdr.ut_name, size));
DEBUG_PRINTF(4, ("%s(%s) res=%zd\n", __func__, tf->tf_hdr.ut_name,
DEBUG_PRINTF(3, ("%s: negative file seek (%jd)\n", __func__,
DEBUG_PRINTF(5, ("%s: no file to cache data for?\n",
DEBUG_PRINTF(5, ("%s: no package associated with file?\n",
DEBUG_PRINTF(5, ("%s: data already cached\n", __func__));
DEBUG_PRINTF(5, ("%s: caching after force read of file %s?\n",
DEBUG_PRINTF(5, ("%s: could not allocate %d bytes\n",
#ifndef DEBUG_PRINTF
DEBUG_PRINTF(5,("%s: myport=%hu xid=%lu, block=%hu\n",
DEBUG_PRINTF(6,("%s: myport=%hu xid=%lu, block=%hu, opcode=%hu\n",
DEBUG_PRINTF(0, ("tftp-error %d\n", tftp_error));
DEBUG_PRINTF(0, ("tftp type %hu not handled\n", extra->rtype));
DEBUG_PRINTF(5,("%s: %s: id=%d port=%d myport=%hu xid=1\n",
DEBUG_PRINTF(3,("%s: %s: id=%d errno=%d\n",
DEBUG_PRINTF(5,("%s: %s: id=%d port=%d myport=%hu xid=%lu\n",
DEBUG_PRINTF(3,("%s: %s: id=%d errno=%d\n",
DEBUG_PRINTF(5,("%s: %s: id=%d res=%d blksz=%d last=%d\n",
DEBUG_PRINTF(1, ("%s(%s) id=%d port=%d\n",
DEBUG_PRINTF(1, ("%s: EBUSY\n", __func__));
DEBUG_PRINTF(0, ("tftp: read error\n"));
DEBUG_PRINTF(0, ("tftp: invalid offset %d\n",
DEBUG_PRINTF(0, ("tftp: block %d not found\n", needblock));
DEBUG_PRINTF(4, ("%s(%s) res=%ld\n", __func__, tftpfile->path,
DEBUG_PRINTF(1, ("%s(%d): %s\n", __func__,
DEBUG_PRINTF(2,("%s(%s) dev=%lu ino=%lu\n", __func__,
DEBUG_PRINTF(2, ("tftp_blksize: %u\n", h->tftp_blksize));
DEBUG_PRINTF(2, ("tftp_tsize: %lu\n", h->tftp_tsize));
DEBUG_PRINTF(3, sc->dev,
DEBUG_PRINTF(2, sc->dev, "cdb length %u too large\n",
DEBUG_PRINTF(2, sc->dev,
DEBUG_PRINTF(3, sc->dev,
DEBUG_PRINTF(1, sc->dev, "rings_state: %p\n", sc->rings_state);
DEBUG_PRINTF(1, sc->dev, "req_ring: %p - %u pages\n", sc->req_ring,
DEBUG_PRINTF(1, sc->dev, "cmp_ring: %p - %u pages\n", sc->cmp_ring,
DEBUG_PRINTF(1, sc->dev, "msg_ring: %p - %u pages\n", sc->msg_ring,
DEBUG_PRINTF(2, sc->dev, "adapter reset done: %u\n", val);
DEBUG_PRINTF(2, sc->dev, "bus reset done\n");
DEBUG_PRINTF(2, sc->dev, "device reset done\n");
DEBUG_PRINTF(2, sc->dev, "abort done\n");
DEBUG_PRINTF(1, sc->dev,
DEBUG_PRINTF(3, sc->dev,
DEBUG_PRINTF(1, sc->dev,