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/cam | |
parent | 92f218ee1779c4b4c6be5b93d1976dcd148b8c6c (diff) | |
download | FreeBSD-src-77349ff3899e25787526114a5f5460ef796106ec.zip FreeBSD-src-77349ff3899e25787526114a5f5460ef796106ec.tar.gz |
Correct printf format bugs.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 4 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 11a2afe..bc7e7c6 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: cam_xpt.c,v 1.1 1998/09/15 06:33:23 gibbs Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -5360,7 +5360,7 @@ xptfinishconfigfunc(struct cam_ed *device, void *arg) device->target->target_id, device->lun_id)) != CAM_REQ_CMP) { printf("xptfinishconfig: xpt_create_path failed with status" - " %#x, halting bus configuration\n"); + " %#x, halting bus configuration\n", status); return(0); } diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index 5600de5..4c50f14 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: scsi_target.c,v 1.1 1998/09/15 06:36:34 gibbs Exp $ */ #include <stddef.h> /* For offsetof */ @@ -906,7 +906,7 @@ targrunqueue(struct cam_periph *periph, struct targ_softc *softc) softc->flags &= ~TARG_FLAG_SEND_EOF; else { xpt_print_path(periph->path); - printf("De-Queued a SEND buffer %d\n", + printf("De-Queued a SEND buffer %ld\n", bp->b_bcount); } bufq = &softc->snd_buf_queue; @@ -919,7 +919,8 @@ targrunqueue(struct cam_periph *periph, struct targ_softc *softc) softc->flags &= ~TARG_FLAG_RECEIVE_EOF; else { xpt_print_path(periph->path); - printf("De-Queued a RECEIVE buffer %d\n", bp->b_bcount); + printf("De-Queued a RECEIVE buffer %ld\n", + bp->b_bcount); } bufq = &softc->rcv_buf_queue; pending_queue = &softc->rcv_ccb_queue; @@ -945,8 +946,8 @@ targrunqueue(struct cam_periph *periph, struct targ_softc *softc) MIN(desc->data_resid, bp->b_resid); } xpt_print_path(periph->path); - printf("Buffer command: data %x: datacnt %d\n", desc->data, - desc->data_increment); + printf("Buffer command: data %x: datacnt %d\n", + (intptr_t)desc->data, desc->data_increment); TAILQ_INSERT_TAIL(&softc->work_queue, &atio->ccb_h, periph_links.tqe); } @@ -1299,7 +1300,7 @@ targdone(struct cam_periph *periph, union ccb *done_ccb) bp->b_error = 0; xpt_print_path(done_ccb->ccb_h.path); - printf("Buffer I/O Completed - Resid %d:%d\n", + printf("Buffer I/O Completed - Resid %ld:%d\n", bp->b_resid, desc->data_resid); /* * Send the buffer back to the client if |