diff options
author | mav <mav@FreeBSD.org> | 2017-01-26 21:06:59 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-01-26 21:06:59 +0000 |
commit | 8a05586bdb81749e2da97c864bf305783a2bcc1f (patch) | |
tree | 4bb11a403ca90a262fd7d058d80c0f5664b1a047 /sys/cam/cam_periph.c | |
parent | 364b4520f5d00864b8d96cf947c4ea882fe56633 (diff) | |
download | FreeBSD-src-8a05586bdb81749e2da97c864bf305783a2bcc1f.zip FreeBSD-src-8a05586bdb81749e2da97c864bf305783a2bcc1f.tar.gz |
MFC r312026: Improve CAM_CDB_POINTER support.
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r-- | sys/cam/cam_periph.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 942a6c3..78b5541 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1925,10 +1925,7 @@ cam_periph_devctl_notify(union ccb *ccb) if (ccb->ccb_h.func_code == XPT_SCSI_IO) { sbuf_printf(&sb, "CDB=\""); - if ((ccb->ccb_h.flags & CAM_CDB_POINTER) != 0) - scsi_cdb_sbuf(ccb->csio.cdb_io.cdb_ptr, &sb); - else - scsi_cdb_sbuf(ccb->csio.cdb_io.cdb_bytes, &sb); + scsi_cdb_sbuf(scsiio_cdb_ptr(&ccb->csio), &sb); sbuf_printf(&sb, "\" "); } else if (ccb->ccb_h.func_code == XPT_ATA_IO) { sbuf_printf(&sb, "ACB=\""); |