mc_params)); if (status != 0) { - printf("proberegister: cam_periph_acquire failed (status=%d)\n", - status); + printf( + "proberegister: cam_periph_acquire failed (status=%d)\n", + status); return (CAM_REQ_CMP_ERR); } CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe started\n")); diff --git a/sys/cam/nvme/nvme_xpt.c b/sys/cam/nvme/nvme_xpt.c index d2cb6ff11fd4..47c0bde1df37 100644 --- a/sys/cam/nvme/nvme_xpt.c +++ b/sys/cam/nvme/nvme_xpt.c @@ -204,16 +204,16 @@ nvme_probe_register(struct cam_periph *periph, void *arg) request_ccb = (union ccb *)arg; if (request_ccb == NULL) { - printf("nvme_probe_register: no probe CCB, " - "can't register device\n"); + printf( + "nvme_probe_register: no probe CCB, can't register device\n"); return(CAM_REQ_CMP_ERR); } softc = (nvme_probe_softc *)malloc(sizeof(*softc), M_CAMXPT, M_ZERO | M_NOWAIT); if (softc == NULL) { - printf("nvme_probe_register: Unable to probe new device. " - "Unable to allocate softc\n"); + printf( + "nvme_probe_register: Unable to probe new device. Unable to allocate softc\n"); return(CAM_REQ_CMP_ERR); } TAILQ_INIT(&softc->request_ccbs); @@ -579,8 +579,8 @@ nvme_scan_lun(struct cam_periph *periph, struct cam_path *path, request_ccb); if (status != CAM_REQ_CMP) { - xpt_print(path, "xpt_scan_lun: cam_alloc_periph " - "returned an error, can't continue probe\n"); + xpt_print(path, + "xpt_scan_lun: cam_alloc_periph returned an error, can't continue probe\n"); request_ccb->ccb_h.status = status; xpt_done(request_ccb); } diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c index 45aae4a50669..21cb6beaf1fb 100644 --- a/sys/cam/scsi/scsi_xpt.c +++ b/sys/cam/scsi/scsi_xpt.c @@ -646,16 +646,14 @@ proberegister(struct cam_periph *periph, void *arg) request_ccb = (union ccb *)arg; if (request_ccb == NULL) { - printf("proberegister: no probe CCB, " - "can't register device\n"); + printf("proberegister: no probe CCB, can't register device\n"); return(CAM_REQ_CMP_ERR); } softc = (probe_softc *)malloc(sizeof(*softc), M_CAMXPT, M_NOWAIT); if (softc == NULL) { - printf("proberegister: Unable to probe new device. " - "Unable to allocate softc\n"); + printf("proberegister: Unable to probe new device. Unable to allocate softc\n"); return(CAM_REQ_CMP_ERR); } TAILQ_INIT(&softc->request_ccbs); @@ -864,8 +862,8 @@ again: /*timeout*/60000); break; } - xpt_print(periph->path, "Unable to mode sense control page - " - "malloc failure\n"); + xpt_print(periph->path, + "Unable to mode sense control page - malloc failure\n"); PROBE_SET_ACTION(softc, PROBE_SUPPORTED_VPD_LIST); } /* FALLTHROUGH */ @@ -1000,8 +998,8 @@ done: inquiry_len = roundup2(SID_ADDITIONAL_LENGTH(inq_buf), 2); inq_buf = malloc(inquiry_len, M_CAMXPT, M_NOWAIT); if (inq_buf == NULL) { - xpt_print(periph->path, "malloc failure- skipping Basic" - "Domain Validation\n"); + xpt_print(periph->path, + "malloc failure- skipping Basic Domain Validation\n"); PROBE_SET_ACTION(softc, PROBE_DV_EXIT); scsi_test_unit_ready(csio, /*retries*/4, @@ -2035,9 +2033,9 @@ scsi_scan_bus(struct cam_periph *periph, union ccb *request_ccb) request_ccb->ccb_h.path_id, i, 0); if (status != CAM_REQ_CMP) { - printf("scsi_scan_bus: xpt_create_path failed" - " with status %#x, bus scan halted\n", - status); + printf( + "scsi_scan_bus: xpt_create_path failed with status %#x, bus scan halted\n", + status); free(scan_info, M_CAMXPT); request_ccb->ccb_h.status = status; xpt_free_ccb(work_ccb); @@ -2230,8 +2228,8 @@ scsi_scan_bus(struct cam_periph *periph, union ccb *request_ccb) scan_info->counter, 0); if (status != CAM_REQ_CMP) { mtx_unlock(mtx); - printf("scsi_scan_bus: xpt_create_path failed" - " with status %#x, bus scan halted\n", + printf( + "scsi_scan_bus: xpt_create_path failed with status %#x, bus scan halted\n", status); xpt_free_ccb(request_ccb); xpt_free_ccb((union ccb *)scan_info->cpi); @@ -2260,9 +2258,9 @@ scsi_scan_bus(struct cam_periph *periph, union ccb *request_ccb) */ xpt_free_path(oldpath); if (status != CAM_REQ_CMP) { - printf("scsi_scan_bus: xpt_create_path failed " - "with status %#x, halting LUN scan\n", - status); + printf( + "scsi_scan_bus: xpt_create_path failed with status %#x, halting LUN scan\n", + status); goto hop_again; } xpt_setup_ccb(&request_ccb->ccb_h, path, @@ -2323,8 +2321,8 @@ scsi_scan_lun(struct cam_periph *periph, struct cam_path *path, if (request_ccb == NULL) { request_ccb = xpt_alloc_ccb_nowait(); if (request_ccb == NULL) { - xpt_print(path, "scsi_scan_lun: can't allocate CCB, " - "can't continue\n"); + xpt_print(path, + "scsi_scan_lun: can't allocate CCB, can't continue\n"); return; } status = xpt_create_path(&new_path, NULL, @@ -2332,8 +2330,8 @@ scsi_scan_lun(struct cam_periph *periph, struct cam_path *path, path->target->target_id, path->device->lun_id); if (status != CAM_REQ_CMP) { - xpt_print(path, "scsi_scan_lun: can't create path, " - "can't continue\n"); + xpt_print(path, + "scsi_scan_lun: can't create path, can't continue\n"); xpt_free_ccb(request_ccb); return; } @@ -2366,8 +2364,8 @@ scsi_scan_lun(struct cam_periph *periph, struct cam_path *path, request_ccb); if (status != CAM_REQ_CMP) { - xpt_print(path, "scsi_scan_lun: cam_alloc_periph " - "returned an error, can't continue probe\n"); + xpt_print(path, + "scsi_scan_lun: cam_alloc_periph returned an error, can't continue probe\n"); request_ccb->ccb_h.status = status; xpt_done(request_ccb); } @@ -2619,8 +2617,7 @@ scsi_action(union ccb *start_ccb) if (start_ccb->ccb_h.func_code != XPT_SCSI_IO) { KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0, - ("%s: ccb %p, func_code %#x should not be allocated " - "from UMA zone\n", + ("%s: ccb %p, func_code %#x should not be allocated from UMA zone\n", __func__, start_ccb, start_ccb->ccb_h.func_code)); } @@ -2687,8 +2684,9 @@ scsi_set_transfer_settings(struct ccb_trans_settings *cts, struct cam_path *path if (cts->protocol_version > device->protocol_version) { if (bootverbose) { - xpt_print(path, "Down reving Protocol " - "Version from %d to %d?\n", cts->protocol_version, + xpt_print(path, + "Down reving Protocol Version from %d to %d?\n", + cts->protocol_version, device->protocol_version); } cts->protocol_version = device->protocol_version; @@ -2712,8 +2710,9 @@ scsi_set_transfer_settings(struct ccb_trans_settings *cts, struct cam_path *path if (cts->transport_version > device->transport_version) { if (bootverbose) { - xpt_print(path, "Down reving Transport " - "Version from %d to %d?\n", cts->transport_version, + xpt_print(path, + "Down reving Transport Version from %d to %d?\n", + cts->transport_version, device->transport_version); } cts->transport_version = device->transport_version;