aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp_freebsd.h
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/isp/isp_freebsd.h
parent630e459e517b73df408ae38e80c841c978464a8d (diff)
downloadsrc-123055f01fc8cd655ecd99467e3f8770a58c0c1f.tar.gz
src-123055f01fc8cd655ecd99467e3f8770a58c0c1f.zip
Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t,
mostly by adjustments to debugging printf() format specifiers. For high numbered LUNs, also switch to printing them in hex as per SAM-5. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=257381
Diffstat (limited to 'sys/dev/isp/isp_freebsd.h')
-rw-r--r--sys/dev/isp/isp_freebsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 5fcae7fc9960..0366c6231c7e 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -504,7 +504,7 @@ default: \
#define XS_ISP(ccb) cam_sim_softc(xpt_path_sim((ccb)->ccb_h.path))
#define XS_CHANNEL(ccb) cam_sim_bus(xpt_path_sim((ccb)->ccb_h.path))
#define XS_TGT(ccb) (ccb)->ccb_h.target_id
-#define XS_LUN(ccb) (ccb)->ccb_h.target_lun
+#define XS_LUN(ccb) (uint32_t)((ccb)->ccb_h.target_lun)
#define XS_CDBP(ccb) \
(((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \