diff options
| author | elric <elric@NetBSD.org> | 2001-09-21 23:54:57 +0000 |
|---|---|---|
| committer | elric <elric@NetBSD.org> | 2001-09-21 23:54:57 +0000 |
| commit | b537810471bf96cb3ac856acf2f3c6962ea4d82f (patch) | |
| tree | 9ef5ce24a395cf2d91c0f1da2a0ae52a0305505c /sys/dev/ic | |
| parent | 50d6ecf7c05845ed6829f35219eac71078afca98 (diff) | |
Fixed AHC_DEBUG on 64 bit arches with a bit of casting in a printf.
Added a message to help me debug a problem that I'm having. The
printf is protected by AHC_DEBUG.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/aic7xxx.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index dfee75f02c7..85763da87bd 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic7xxx.c,v 1.80 2001/09/16 16:34:36 wiz Exp $ */ +/* $NetBSD: aic7xxx.c,v 1.81 2001/09/21 23:54:57 elric Exp $ */ /* * Generic driver for the aic7xxx based adaptec SCSI controllers @@ -3546,12 +3546,12 @@ ahc_init(struct ahc_softc *ahc) #ifdef AHC_DEBUG if (ahc_debug & AHC_SHOWMISC) { - printf("%s: hardware scb %d bytes; kernel scb %d bytes; " - "ahc_dma %d bytes\n", + printf("%s: hardware scb %lu bytes; kernel scb %lu bytes; " + "ahc_dma %lu bytes\n", ahc_name(ahc), - sizeof(struct hardware_scb), - sizeof(struct scb), - sizeof(struct ahc_dma_seg)); + (unsigned long) sizeof(struct hardware_scb), + (unsigned long) sizeof(struct scb), + (unsigned long) sizeof(struct ahc_dma_seg)); } #endif /* AHC_DEBUG */ @@ -4176,6 +4176,12 @@ ahc_setup_data(struct ahc_softc *ahc, struct scsipi_xfer *xs, ((xs->xs_control & XS_CTL_DATA_IN) ? BUS_DMA_READ : BUS_DMA_WRITE)); if (error) { +#ifdef AHC_DEBUG + printf("%s: in ahc_setup_data(): bus_dmamap_load() " + "= %d\n", + ahc_name(ahc), + error); +#endif if (!ahc_istagged_device(ahc, xs, 0)) ahc_index_busy_tcl(ahc, hscb->tcl, TRUE); xs->error = XS_RESOURCE_SHORTAGE; /* XXX fvdl */ |
