Avoid format warnings.

This commit is contained in:
fvdl 2000-12-04 20:25:40 +00:00
parent 2ccdc61f62
commit 56fd0b02d5
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide.c,v 1.95 2000/11/30 18:11:40 thorpej Exp $ */ /* $NetBSD: pciide.c,v 1.96 2000/12/04 20:25:40 fvdl Exp $ */
/* /*
@ -719,7 +719,7 @@ pciide_mapreg_dma(sc, pa)
if ((sc->sc_pp->ide_flags & IDE_16BIT_IOSPACE) if ((sc->sc_pp->ide_flags & IDE_16BIT_IOSPACE)
&& addr >= 0x10000) { && addr >= 0x10000) {
sc->sc_dma_ok = 0; sc->sc_dma_ok = 0;
printf(", but unused (registers at unsafe address %#lx)", addr); printf(", but unused (registers at unsafe address %#lx)", (unsigned long)addr);
break; break;
} }
/* FALLTHROUGH */ /* FALLTHROUGH */
@ -854,9 +854,9 @@ pciide_dma_table_setup(sc, channel, drive)
channel, drive, error); channel, drive, error);
return error; return error;
} }
WDCDEBUG_PRINT(("pciide_dma_table_setup: table at %p len %ld, " WDCDEBUG_PRINT(("pciide_dma_table_setup: table at %p len %lu, "
"phy 0x%lx\n", dma_maps->dma_table, dma_table_size, "phy 0x%lx\n", dma_maps->dma_table, (u_long)dma_table_size,
seg.ds_addr), DEBUG_PROBE); (unsigned long)seg.ds_addr), DEBUG_PROBE);
/* Create and load table DMA map for this disk */ /* Create and load table DMA map for this disk */
if ((error = bus_dmamap_create(sc->sc_dmat, dma_table_size, if ((error = bus_dmamap_create(sc->sc_dmat, dma_table_size,
@ -877,7 +877,8 @@ pciide_dma_table_setup(sc, channel, drive)
return error; return error;
} }
WDCDEBUG_PRINT(("pciide_dma_table_setup: phy addr of table 0x%lx\n", WDCDEBUG_PRINT(("pciide_dma_table_setup: phy addr of table 0x%lx\n",
dma_maps->dmamap_table->dm_segs[0].ds_addr), DEBUG_PROBE); (unsigned long)dma_maps->dmamap_table->dm_segs[0].ds_addr),
DEBUG_PROBE);
/* Create a xfer DMA map for this drive */ /* Create a xfer DMA map for this drive */
if ((error = bus_dmamap_create(sc->sc_dmat, IDEDMA_BYTE_COUNT_MAX, if ((error = bus_dmamap_create(sc->sc_dmat, IDEDMA_BYTE_COUNT_MAX,
NIDEDMA_TABLES, IDEDMA_BYTE_COUNT_MAX, IDEDMA_BYTE_COUNT_ALIGN, NIDEDMA_TABLES, IDEDMA_BYTE_COUNT_MAX, IDEDMA_BYTE_COUNT_ALIGN,