aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-10-30 14:04:47 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-10-30 14:04:47 +0000
commit123055f01fc8cd655ecd99467e3f8770a58c0c1f (patch)
treef38033fa78e1b6966fc4d3461bb2d766a6325ac2 /sys/dev/firewire
parent630e459e517b73df408ae38e80c841c978464a8d (diff)
Notes
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r--sys/dev/firewire/sbp.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c
index 00e780e9002c..8f3159b73bc7 100644
--- a/sys/dev/firewire/sbp.c
+++ b/sys/dev/firewire/sbp.c
@@ -1493,12 +1493,13 @@ sbp_print_scsi_cmd(struct sbp_ocb *ocb)
struct ccb_scsiio *csio;
csio = &ocb->ccb->csio;
- printf("%s:%d:%d XPT_SCSI_IO: "
+ printf("%s:%d:%jx XPT_SCSI_IO: "
"cmd: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x"
", flags: 0x%02x, "
"%db cmd/%db data/%db sense\n",
device_get_nameunit(ocb->sdev->target->sbp->fd.dev),
- ocb->ccb->ccb_h.target_id, ocb->ccb->ccb_h.target_lun,
+ ocb->ccb->ccb_h.target_id,
+ (uintmax_t)ocb->ccb->ccb_h.target_lun,
csio->cdb_io.cdb_bytes[0],
csio->cdb_io.cdb_bytes[1],
csio->cdb_io.cdb_bytes[2],
@@ -2354,8 +2355,8 @@ sbp_action1(struct cam_sim *sim, union ccb *ccb)
SBP_DEBUG(1)
if (sdev == NULL)
- printf("invalid target %d lun %d\n",
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun);
+ printf("invalid target %d lun %jx\n",
+ ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun);
END_DEBUG
switch (ccb->ccb_h.func_code) {
@@ -2366,10 +2367,11 @@ END_DEBUG
case XPT_CALC_GEOMETRY:
if (sdev == NULL) {
SBP_DEBUG(1)
- printf("%s:%d:%d:func_code 0x%04x: "
+ printf("%s:%d:%jx:func_code 0x%04x: "
"Invalid target (target needed)\n",
device_get_nameunit(sbp->fd.dev),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun,
+ ccb->ccb_h.target_id,
+ (uintmax_t)ccb->ccb_h.target_lun,
ccb->ccb_h.func_code);
END_DEBUG
@@ -2387,10 +2389,11 @@ END_DEBUG
if (sbp == NULL &&
ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) {
SBP_DEBUG(0)
- printf("%s:%d:%d func_code 0x%04x: "
+ printf("%s:%d:%jx func_code 0x%04x: "
"Invalid target (no wildcard)\n",
device_get_nameunit(sbp->fd.dev),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun,
+ ccb->ccb_h.target_id,
+ (uintmax_t)ccb->ccb_h.target_lun,
ccb->ccb_h.func_code);
END_DEBUG
ccb->ccb_h.status = CAM_DEV_NOT_THERE;
@@ -2415,12 +2418,12 @@ END_DEBUG
mtx_assert(sim->mtx, MA_OWNED);
SBP_DEBUG(2)
- printf("%s:%d:%d XPT_SCSI_IO: "
+ printf("%s:%d:%jx XPT_SCSI_IO: "
"cmd: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x"
", flags: 0x%02x, "
"%db cmd/%db data/%db sense\n",
device_get_nameunit(sbp->fd.dev),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun,
+ ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun,
csio->cdb_io.cdb_bytes[0],
csio->cdb_io.cdb_bytes[1],
csio->cdb_io.cdb_bytes[2],
@@ -2521,7 +2524,7 @@ printf("ORB %08x %08x %08x %08x\n", ntohl(ocb->orb[4]), ntohl(ocb->orb[5]), ntoh
break;
}
SBP_DEBUG(1)
- printf("%s:%d:%d:%d:XPT_CALC_GEOMETRY: "
+ printf("%s:%d:%d:%jx:XPT_CALC_GEOMETRY: "
#if defined(__DragonFly__) || __FreeBSD_version < 500000
"Volume size = %d\n",
#else
@@ -2529,7 +2532,7 @@ SBP_DEBUG(1)
#endif
device_get_nameunit(sbp->fd.dev),
cam_sim_path(sbp->sim),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun,
+ ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun,
#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
(uintmax_t)
#endif
@@ -2573,9 +2576,9 @@ END_DEBUG
struct ccb_pathinq *cpi = &ccb->cpi;
SBP_DEBUG(1)
- printf("%s:%d:%d XPT_PATH_INQ:.\n",
+ printf("%s:%d:%jx XPT_PATH_INQ:.\n",
device_get_nameunit(sbp->fd.dev),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun);
+ ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun);
END_DEBUG
cpi->version_num = 1; /* XXX??? */
cpi->hba_inquiry = PI_TAG_ABLE;
@@ -2617,9 +2620,9 @@ END_DEBUG
scsi->valid = CTS_SCSI_VALID_TQ;
scsi->flags = CTS_SCSI_FLAGS_TAG_ENB;
SBP_DEBUG(1)
- printf("%s:%d:%d XPT_GET_TRAN_SETTINGS:.\n",
+ printf("%s:%d:%jx XPT_GET_TRAN_SETTINGS:.\n",
device_get_nameunit(sbp->fd.dev),
- ccb->ccb_h.target_id, ccb->ccb_h.target_lun);
+ ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun);
END_DEBUG
cts->ccb_h.status = CAM_REQ_CMP;
xpt_done(ccb);