diff options
| author | 2006-03-12 19:41:13 +0000 | |
|---|---|---|
| committer | 2006-03-12 19:41:13 +0000 | |
| commit | c89b59d3fc9000fddd5711990ab0912061586d3e (patch) | |
| tree | e74c1995cf418c0dbedc6e8066eefe8eab500b90 /sys/dev/pci/safe.c | |
| parent | mbuf use-after-free; ok henning, djm, brad (diff) | |
| download | wireguard-openbsd-c89b59d3fc9000fddd5711990ab0912061586d3e.tar.xz wireguard-openbsd-c89b59d3fc9000fddd5711990ab0912061586d3e.zip | |
make SAFE_DEBUG compile clean; ssehic@gmail
Diffstat (limited to 'sys/dev/pci/safe.c')
| -rw-r--r-- | sys/dev/pci/safe.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/dev/pci/safe.c b/sys/dev/pci/safe.c index 51e288b7096..97a19eb1e40 100644 --- a/sys/dev/pci/safe.c +++ b/sys/dev/pci/safe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: safe.c,v 1.18 2006/02/06 17:29:11 jmc Exp $ */ +/* $OpenBSD: safe.c,v 1.19 2006/03/12 19:41:13 deraadt Exp $ */ /*- * Copyright (c) 2003 Sam Leffler, Errno Consulting @@ -2091,13 +2091,9 @@ safe_dump_request(struct safe_softc *sc, const char* tag, struct safe_ringentry ix = (re->re_desc.d_src - sc->sc_spalloc.dma_paddr) / sizeof(struct safe_pdesc); for (nsegs = re->re_src_nsegs; nsegs; nsegs--) { - printf(" spd[%u] %p: %p size %u flags %x", ix, + printf(" spd[%u] %p: %p", ix, &sc->sc_spring[ix], - (caddr_t)sc->sc_spring[ix].pd_addr, - sc->sc_spring[ix].pd_size, - sc->sc_spring[ix].pd_flags); - if (sc->sc_spring[ix].pd_size == 0) - printf(" (zero!)"); + (caddr_t)sc->sc_spring[ix].pd_addr); printf("\n"); if (++ix == SAFE_TOTAL_SPART) ix = 0; @@ -2107,10 +2103,9 @@ safe_dump_request(struct safe_softc *sc, const char* tag, struct safe_ringentry ix = (re->re_desc.d_dst - sc->sc_dpalloc.dma_paddr) / sizeof(struct safe_pdesc); for (nsegs = re->re_dst_nsegs; nsegs; nsegs--) { - printf(" dpd[%u] %p: %p flags %x\n", ix, + printf(" dpd[%u] %p: %p\n", ix, &sc->sc_dpring[ix], - (caddr_t) sc->sc_dpring[ix].pd_addr, - sc->sc_dpring[ix].pd_flags); + (caddr_t) sc->sc_dpring[ix].pd_addr); if (++ix == SAFE_TOTAL_DPART) ix = 0; } |
