diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-09-15 22:05:44 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-09-15 22:05:44 +0000 |
commit | 77349ff3899e25787526114a5f5460ef796106ec (patch) | |
tree | 752d76e17b87a39b4042c3d7ba692310283cb1c6 /sys/dev/dpt/dpt_scsi.c | |
parent | 92f218ee1779c4b4c6be5b93d1976dcd148b8c6c (diff) | |
download | FreeBSD-src-77349ff3899e25787526114a5f5460ef796106ec.zip FreeBSD-src-77349ff3899e25787526114a5f5460ef796106ec.tar.gz |
Correct printf format bugs.
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index 99dea45..9c60dd1 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -43,7 +43,7 @@ * arrays that span controllers (Wow!). */ -#ident "$Id: dpt_scsi.c,v 1.12 1998/08/26 19:11:22 gibbs Exp $" +#ident "$Id: dpt_scsi.c,v 1.13 1998/09/15 08:33:31 gibbs Exp $" #define _DPT_C_ @@ -620,7 +620,7 @@ dptexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) if (error != 0) { if (error != EFBIG) printf("dpt%d: Unexepected error 0x%x returned from " - "bus_dmamap_load\n", dpt->unit); + "bus_dmamap_load\n", dpt->unit, error); if (ccb->ccb_h.status == CAM_REQ_INPROG) { xpt_freeze_devq(ccb->ccb_h.path, /*count*/1); ccb->ccb_h.status = CAM_REQ_TOO_BIG|CAM_DEV_QFRZN; @@ -1603,13 +1603,14 @@ dpttimeout(void *arg) ccb = dccb->ccb; dpt = (struct dpt_softc *)ccb->ccb_h.ccb_dpt_ptr; xpt_print_path(ccb->ccb_h.path); - printf("CCB 0x%x - timed out\n", dccb); + printf("CCB 0x%x - timed out\n", (intptr_t)dccb); s = splcam(); if ((dccb->state & DCCB_ACTIVE) == 0) { xpt_print_path(ccb->ccb_h.path); - printf("CCB 0x%x - timed out CCB already completed\n", dccb); + printf("CCB 0x%x - timed out CCB already completed\n", + (intptr_t)dccb); splx(s); return; } |