diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-12 19:41:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-12 19:41:14 +0000 |
commit | 8723c38fffe58fff1a3cbced1fab64c9f4474612 (patch) | |
tree | f40a6ac5d0c53f4800fe052a5d80a9314b73d8f3 /sys/dev | |
parent | 70e0f6a0ad3dd8cc4ae402879a0290cadd5916f3 (diff) |
make SAFE_DEBUG compile clean; ssehic@gmail
Diffstat (limited to 'sys/dev')
-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; } |