svn commit: r237306 - in stable/8/sys/cam: ata scsi
Alexander Motin
mav at FreeBSD.org
Wed Jun 20 14:11:19 UTC 2012
Author: mav
Date: Wed Jun 20 14:11:18 2012
New Revision: 237306
URL: http://svn.freebsd.org/changeset/base/237306
Log:
MFC r236602, r236613:
Tune and add some missing CAM_DEBUG() points for better consistency.
Modified:
stable/8/sys/cam/ata/ata_da.c
stable/8/sys/cam/ata/ata_pmp.c
stable/8/sys/cam/ata/ata_xpt.c
stable/8/sys/cam/scsi/scsi_cd.c
stable/8/sys/cam/scsi/scsi_da.c
stable/8/sys/cam/scsi/scsi_pt.c
stable/8/sys/cam/scsi/scsi_xpt.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/cam/ata/ata_da.c
==============================================================================
--- stable/8/sys/cam/ata/ata_da.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/ata/ata_da.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -426,9 +426,8 @@ adaopen(struct disk *dp)
softc = (struct ada_softc *)periph->softc;
softc->flags |= ADA_FLAG_OPEN;
- CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
- ("adaopen: disk=%s%d (unit %d)\n", dp->d_name, dp->d_unit,
- periph->unit_number));
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("adaopen\n"));
if ((softc->flags & ADA_FLAG_PACK_INVALID) != 0) {
/* Invalidate our pack information. */
@@ -459,6 +458,10 @@ adaclose(struct disk *dp)
}
softc = (struct ada_softc *)periph->softc;
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("adaclose\n"));
+
/* We only sync the cache if the drive is capable of it. */
if ((softc->flags & ADA_FLAG_CAN_FLUSHCACHE) != 0 &&
(softc->flags & ADA_FLAG_PACK_INVALID) == 0) {
@@ -532,6 +535,8 @@ adastrategy(struct bio *bp)
cam_periph_lock(periph);
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("adastrategy(%p)\n", bp));
+
/*
* If the device has been made invalid, error out
*/
@@ -1113,6 +1118,8 @@ adastart(struct cam_periph *periph, unio
struct ada_softc *softc = (struct ada_softc *)periph->softc;
struct ccb_ataio *ataio = &start_ccb->ataio;
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("adastart\n"));
+
switch (softc->state) {
case ADA_STATE_NORMAL:
{
@@ -1121,7 +1128,7 @@ adastart(struct cam_periph *periph, unio
/* Execute immediate CCB if waiting. */
if (periph->immediate_priority <= periph->pinfo.priority) {
- CAM_DEBUG_PRINT(CAM_DEBUG_SUBTRACE,
+ CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE,
("queuing for immediate ccb\n"));
start_ccb->ccb_h.ccb_state = ADA_CCB_WAITING;
SLIST_INSERT_HEAD(&periph->ccb_list, &start_ccb->ccb_h,
@@ -1413,6 +1420,9 @@ adadone(struct cam_periph *periph, union
softc = (struct ada_softc *)periph->softc;
ataio = &done_ccb->ataio;
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("adadone\n"));
+
switch (ataio->ccb_h.ccb_state & ADA_CCB_TYPE_MASK) {
case ADA_CCB_BUFFER_IO:
case ADA_CCB_TRIM:
Modified: stable/8/sys/cam/ata/ata_pmp.c
==============================================================================
--- stable/8/sys/cam/ata/ata_pmp.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/ata/ata_pmp.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -429,7 +429,9 @@ pmpstart(struct cam_periph *periph, unio
softc = (struct pmp_softc *)periph->softc;
ataio = &start_ccb->ataio;
-
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("pmpstart\n"));
+
if (softc->restart) {
softc->restart = 0;
softc->state = min(softc->state, PMP_STATE_PRECONFIG);
@@ -560,7 +562,7 @@ pmpdone(struct cam_periph *periph, union
softc = (struct pmp_softc *)periph->softc;
ataio = &done_ccb->ataio;
- CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("pmpdone\n"));
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("pmpdone\n"));
priority = done_ccb->ccb_h.pinfo.priority;
Modified: stable/8/sys/cam/ata/ata_xpt.c
==============================================================================
--- stable/8/sys/cam/ata/ata_xpt.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/ata/ata_xpt.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -94,6 +94,7 @@ typedef enum {
PROBE_FULL_INQUIRY,
PROBE_PM_PID,
PROBE_PM_PRV,
+ PROBE_DONE,
PROBE_INVALID
} probe_action;
@@ -111,6 +112,7 @@ static char *probe_action_text[] = {
"PROBE_FULL_INQUIRY",
"PROBE_PM_PID",
"PROBE_PM_PRV",
+ "PROBE_DONE",
"PROBE_INVALID"
};
@@ -118,7 +120,7 @@ static char *probe_action_text[] = {
do { \
char **text; \
text = probe_action_text; \
- CAM_DEBUG((softc)->periph->path, CAM_DEBUG_INFO, \
+ CAM_DEBUG((softc)->periph->path, CAM_DEBUG_PROBE, \
("Probe %s to %s\n", text[(softc)->action], \
text[(newaction)])); \
(softc)->action = (newaction); \
@@ -247,6 +249,8 @@ proberegister(struct cam_periph *periph,
if (status != CAM_REQ_CMP) {
return (status);
}
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe started\n"));
+
/*
* Ensure nobody slip in until probe finish.
*/
@@ -623,11 +627,8 @@ negotiate:
10 * 1000);
ata_pm_read_cmd(ataio, 1, 15);
break;
- case PROBE_INVALID:
- CAM_DEBUG(path, CAM_DEBUG_INFO,
- ("probestart: invalid action state\n"));
default:
- break;
+ panic("probestart: invalid action state 0x%x\n", softc->action);
}
xpt_action(start_ccb);
}
@@ -729,6 +730,7 @@ probedone(struct cam_periph *periph, uni
*/
device_fail: if ((path->device->flags & CAM_DEV_UNCONFIGURED) == 0)
xpt_async(AC_LOST_DEVICE, path, NULL);
+ PROBE_SET_ACTION(softc, PROBE_INVALID);
found = 0;
goto done;
}
@@ -740,8 +742,8 @@ noerror:
{
int sign = (done_ccb->ataio.res.lba_high << 8) +
done_ccb->ataio.res.lba_mid;
- if (bootverbose)
- xpt_print(path, "SIGNATURE: %04x\n", sign);
+ CAM_DEBUG(path, CAM_DEBUG_PROBE,
+ ("SIGNATURE: %04x\n", sign));
if (sign == 0x0000 &&
done_ccb->ccb_h.target_id != 15) {
path->device->protocol = PROTO_ATA;
@@ -986,6 +988,7 @@ notsata:
xpt_async(AC_FOUND_DEVICE, done_ccb->ccb_h.path,
done_ccb);
}
+ PROBE_SET_ACTION(softc, PROBE_DONE);
break;
case PROBE_INQUIRY:
case PROBE_FULL_INQUIRY:
@@ -1029,6 +1032,7 @@ notsata:
xpt_action(done_ccb);
xpt_async(AC_FOUND_DEVICE, done_ccb->ccb_h.path, done_ccb);
}
+ PROBE_SET_ACTION(softc, PROBE_DONE);
break;
}
case PROBE_PM_PID:
@@ -1100,12 +1104,10 @@ notsata:
xpt_action(done_ccb);
xpt_async(AC_SCSI_AEN, done_ccb->ccb_h.path, done_ccb);
}
+ PROBE_SET_ACTION(softc, PROBE_DONE);
break;
- case PROBE_INVALID:
- CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_INFO,
- ("probedone: invalid action state\n"));
default:
- break;
+ panic("probedone: invalid action state 0x%x\n", softc->action);
}
done:
if (softc->restart) {
@@ -1115,6 +1117,7 @@ done:
return;
}
xpt_release_ccb(done_ccb);
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe completed\n"));
while ((done_ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs))) {
TAILQ_REMOVE(&softc->request_ccbs,
&done_ccb->ccb_h, periph_links.tqe);
Modified: stable/8/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_cd.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/scsi/scsi_cd.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -1006,6 +1006,9 @@ cdopen(struct disk *dp)
return (error);
}
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("cdopen\n"));
+
/*
* Check for media, and set the appropriate flags. We don't bail
* if we don't have media, but then we don't allow anything but the
@@ -1043,6 +1046,9 @@ cdclose(struct disk *dp)
cam_periph_lock(periph);
cam_periph_hold(periph, PRIBIO);
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("cdclose\n"));
+
if ((softc->flags & CD_FLAG_DISC_REMOVABLE) != 0)
cdprevent(periph, PR_ALLOW);
@@ -1387,7 +1393,8 @@ cdstrategy(struct bio *bp)
}
cam_periph_lock(periph);
- CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("entering cdstrategy\n"));
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
+ ("cdstrategy(%p)\n", bp));
softc = (struct cd_softc *)periph->softc;
@@ -1852,12 +1859,11 @@ cdioctl(struct disk *dp, u_long cmd, voi
return(ENXIO);
cam_periph_lock(periph);
- CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("entering cdioctl\n"));
softc = (struct cd_softc *)periph->softc;
- CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
- ("trying to do ioctl %#lx\n", cmd));
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
+ ("cdioctl(%#lx)\n", cmd));
if ((error = cam_periph_hold(periph, PRIBIO | PCATCH)) != 0) {
cam_periph_unlock(periph);
Modified: stable/8/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_da.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/scsi/scsi_da.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -914,9 +914,8 @@ daopen(struct disk *dp)
softc = (struct da_softc *)periph->softc;
softc->flags |= DA_FLAG_OPEN;
- CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
- ("daopen: disk=%s%d (unit %d)\n", dp->d_name, dp->d_unit,
- unit));
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("daopen\n"));
if ((softc->flags & DA_FLAG_PACK_INVALID) != 0) {
/* Invalidate our pack information. */
@@ -972,6 +971,9 @@ daclose(struct disk *dp)
softc = (struct da_softc *)periph->softc;
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE | CAM_DEBUG_PERIPH,
+ ("daclose\n"));
+
if ((softc->quirks & DA_Q_NO_SYNC_CACHE) == 0
&& (softc->flags & DA_FLAG_PACK_INVALID) == 0) {
union ccb *ccb;
@@ -1061,7 +1063,9 @@ dastrategy(struct bio *bp)
biofinish(bp, NULL, ENXIO);
return;
}
-
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("dastrategy(%p)\n", bp));
+
/*
* Place it in the queue of disk activities for this disk
*/
@@ -1576,6 +1580,8 @@ dastart(struct cam_periph *periph, union
softc = (struct da_softc *)periph->softc;
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("dastart\n"));
+
switch (softc->state) {
case DA_STATE_NORMAL:
{
@@ -1587,7 +1593,7 @@ dastart(struct cam_periph *periph, union
*/
bp = bioq_first(&softc->bio_queue);
if (periph->immediate_priority <= periph->pinfo.priority) {
- CAM_DEBUG_PRINT(CAM_DEBUG_SUBTRACE,
+ CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE,
("queuing for immediate ccb\n"));
start_ccb->ccb_h.ccb_state = DA_CCB_WAITING;
SLIST_INSERT_HEAD(&periph->ccb_list, &start_ccb->ccb_h,
@@ -1784,6 +1790,9 @@ dadone(struct cam_periph *periph, union
softc = (struct da_softc *)periph->softc;
priority = done_ccb->ccb_h.pinfo.priority;
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("dadone\n"));
+
csio = &done_ccb->csio;
switch (csio->ccb_h.ccb_state & DA_CCB_TYPE_MASK) {
case DA_CCB_BUFFER_IO:
Modified: stable/8/sys/cam/scsi/scsi_pt.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_pt.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/scsi/scsi_pt.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -425,12 +425,14 @@ ptstart(struct cam_periph *periph, union
softc = (struct pt_softc *)periph->softc;
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("ptstart\n"));
+
/*
* See if there is a buf with work for us to do..
*/
bp = bioq_first(&softc->bio_queue);
if (periph->immediate_priority <= periph->pinfo.priority) {
- CAM_DEBUG_PRINT(CAM_DEBUG_SUBTRACE,
+ CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE,
("queuing for immediate ccb\n"));
start_ccb->ccb_h.ccb_state = PT_CCB_WAITING;
SLIST_INSERT_HEAD(&periph->ccb_list, &start_ccb->ccb_h,
@@ -483,6 +485,9 @@ ptdone(struct cam_periph *periph, union
struct ccb_scsiio *csio;
softc = (struct pt_softc *)periph->softc;
+
+ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("ptdone\n"));
+
csio = &done_ccb->csio;
switch (csio->ccb_h.ccb_state) {
case PT_CCB_BUFFER_IO:
Modified: stable/8/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_xpt.c Wed Jun 20 13:59:25 2012 (r237305)
+++ stable/8/sys/cam/scsi/scsi_xpt.c Wed Jun 20 14:11:18 2012 (r237306)
@@ -140,6 +140,7 @@ typedef enum {
PROBE_INQUIRY_BASIC_DV1,
PROBE_INQUIRY_BASIC_DV2,
PROBE_DV_EXIT,
+ PROBE_DONE,
PROBE_INVALID
} probe_action;
@@ -155,6 +156,7 @@ static char *probe_action_text[] = {
"PROBE_INQUIRY_BASIC_DV1",
"PROBE_INQUIRY_BASIC_DV2",
"PROBE_DV_EXIT",
+ "PROBE_DONE",
"PROBE_INVALID"
};
@@ -162,7 +164,7 @@ static char *probe_action_text[] = {
do { \
char **text; \
text = probe_action_text; \
- CAM_DEBUG((softc)->periph->path, CAM_DEBUG_INFO, \
+ CAM_DEBUG((softc)->periph->path, CAM_DEBUG_PROBE, \
("Probe %s to %s\n", text[(softc)->action], \
text[(newaction)])); \
(softc)->action = (newaction); \
@@ -639,7 +641,7 @@ proberegister(struct cam_periph *periph,
if (status != CAM_REQ_CMP) {
return (status);
}
-
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe started\n"));
/*
* Ensure we've waited at least a bus settle
@@ -927,11 +929,8 @@ again:
probedone(periph, start_ccb);
return;
}
- case PROBE_INVALID:
- CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_INFO,
- ("probestart: invalid action state\n"));
default:
- break;
+ panic("probestart: invalid action state 0x%x\n", softc->action);
}
xpt_action(start_ccb);
}
@@ -1011,7 +1010,7 @@ proberequestbackoff(struct cam_periph *p
}
if (device->flags & CAM_DEV_DV_HIT_BOTTOM) {
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("hit async: giving up on DV\n"));
return (0);
}
@@ -1031,7 +1030,7 @@ proberequestbackoff(struct cam_periph *p
if (spi->sync_period >= 0xf) {
spi->sync_period = 0;
spi->sync_offset = 0;
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("setting to async for DV\n"));
/*
* Once we hit async, we don't want to try
@@ -1039,7 +1038,7 @@ proberequestbackoff(struct cam_periph *p
*/
device->flags |= CAM_DEV_DV_HIT_BOTTOM;
} else if (bootverbose) {
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("DV: period 0x%x\n", spi->sync_period));
printf("setting period to 0x%x\n", spi->sync_period);
}
@@ -1049,7 +1048,7 @@ proberequestbackoff(struct cam_periph *p
if ((cts.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) {
break;
}
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("DV: failed to set period 0x%x\n", spi->sync_period));
if (spi->sync_period == 0) {
return (0);
@@ -1194,6 +1193,7 @@ probedone(struct cam_periph *periph, uni
if ((path->device->flags & CAM_DEV_UNCONFIGURED) == 0)
/* Send the async notification. */
xpt_async(AC_LOST_DEVICE, path, NULL);
+ PROBE_SET_ACTION(softc, PROBE_INVALID);
xpt_release_ccb(done_ccb);
break;
@@ -1227,8 +1227,9 @@ probedone(struct cam_periph *periph, uni
/*
* Reallocate and retry to cover all luns
*/
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE, path,
- ("reallocating REPORT_LUNS for %u luns\n", nlun));
+ CAM_DEBUG(path, CAM_DEBUG_PROBE,
+ ("Probe: reallocating REPORT_LUNS for %u luns\n",
+ nlun));
free(lp, M_CAMXPT);
path->target->rpl_size = (nlun << 3) + 8;
xpt_release_ccb(done_ccb);
@@ -1251,8 +1252,8 @@ probedone(struct cam_periph *periph, uni
lun_id_t lun;
int idx;
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE, path,
- ("%u luns reported\n", nlun));
+ CAM_DEBUG(path, CAM_DEBUG_PROBE,
+ ("Probe: %u lun(s) reported\n", nlun));
CAM_GET_SIMPLE_LUN(lp, 0, lun);
/*
@@ -1274,8 +1275,8 @@ probedone(struct cam_periph *periph, uni
lp->luns[idx].lundata, 8);
memcpy(lp->luns[idx].lundata,
tlun, 8);
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE,
- path, ("lun 0 in position %u\n", idx));
+ CAM_DEBUG(path, CAM_DEBUG_PROBE,
+ ("lun 0 in position %u\n", idx));
} else {
/*
* There is no lun 0 in our list. Destroy
@@ -1523,7 +1524,7 @@ probedone(struct cam_periph *periph, uni
&& done_ccb->ccb_h.target_lun == 0
&& (path->device->inq_data.flags & SID_Sync) != 0
&& (path->device->flags & CAM_DEV_IN_DV) == 0) {
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("Begin Domain Validation\n"));
path->device->flags |= CAM_DEV_IN_DV;
xpt_release_ccb(done_ccb);
@@ -1532,7 +1533,7 @@ probedone(struct cam_periph *periph, uni
return;
}
if (softc->action == PROBE_DV_EXIT) {
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("Leave Domain Validation\n"));
}
if (path->device->flags & CAM_DEV_UNCONFIGURED) {
@@ -1548,6 +1549,7 @@ probedone(struct cam_periph *periph, uni
xpt_async(AC_FOUND_DEVICE, done_ccb->ccb_h.path,
done_ccb);
}
+ PROBE_SET_ACTION(softc, PROBE_DONE);
xpt_release_ccb(done_ccb);
break;
case PROBE_INQUIRY_BASIC_DV1:
@@ -1587,7 +1589,7 @@ probedone(struct cam_periph *periph, uni
return;
}
if (softc->action == PROBE_INQUIRY_BASIC_DV2) {
- CAM_DEBUG(periph->path, CAM_DEBUG_INFO,
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE,
("Leave Domain Validation Successfully\n"));
}
if (path->device->flags & CAM_DEV_UNCONFIGURED) {
@@ -1603,20 +1605,19 @@ probedone(struct cam_periph *periph, uni
xpt_async(AC_FOUND_DEVICE, done_ccb->ccb_h.path,
done_ccb);
}
+ PROBE_SET_ACTION(softc, PROBE_DONE);
xpt_release_ccb(done_ccb);
break;
}
- case PROBE_INVALID:
- CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_INFO,
- ("probedone: invalid action state\n"));
default:
- break;
+ panic("probedone: invalid action state 0x%x\n", softc->action);
}
done_ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs);
TAILQ_REMOVE(&softc->request_ccbs, &done_ccb->ccb_h, periph_links.tqe);
done_ccb->ccb_h.status = CAM_REQ_CMP;
xpt_done(done_ccb);
if (TAILQ_FIRST(&softc->request_ccbs) == NULL) {
+ CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe completed\n"));
cam_periph_invalidate(periph);
cam_release_devq(periph->path,
RELSIM_RELEASE_RUNLEVEL, 0, CAM_RL_XPT + 1, FALSE);
@@ -1829,7 +1830,7 @@ scsi_scan_bus(struct cam_periph *periph,
xpt_done(request_ccb);
return;
}
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE, request_ccb->ccb_h.path,
+ CAM_DEBUG(request_ccb->ccb_h.path, CAM_DEBUG_TRACE,
("SCAN start for %p\n", scan_info));
scan_info->request_ccb = request_ccb;
scan_info->cpi = &work_ccb->cpi;
@@ -1942,8 +1943,8 @@ scsi_scan_bus(struct cam_periph *periph,
CAM_GET_SIMPLE_LUN(target->luns,
scan_info->lunindex[target_id], lun_id);
next_target = 0;
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE,
- request_ccb->ccb_h.path,
+ CAM_DEBUG(request_ccb->ccb_h.path,
+ CAM_DEBUG_PROBE,
("next lun to try at index %u is %u\n",
scan_info->lunindex[target_id], lun_id));
scan_info->lunindex[target_id]++;
@@ -2050,8 +2051,8 @@ scsi_scan_bus(struct cam_periph *periph,
xpt_free_ccb(request_ccb);
xpt_free_ccb((union ccb *)scan_info->cpi);
request_ccb = scan_info->request_ccb;
- CAM_DEBUG_PATH_PRINT(CAM_DEBUG_PROBE,
- request_ccb->ccb_h.path,
+ CAM_DEBUG(request_ccb->ccb_h.path,
+ CAM_DEBUG_TRACE,
("SCAN done for %p\n", scan_info));
free(scan_info, M_CAMXPT);
request_ccb->ccb_h.status = CAM_REQ_CMP;
More information about the svn-src-all
mailing list