Skip to content

Commit

Permalink
mmc_xpt: Fix debug messages
Browse files Browse the repository at this point in the history
PROBE_RESET was printed for PROBE_IDENTIFY, fix this.
While here add one for the PROBE_RESET.

Submitted by:	kibab
  • Loading branch information
evadot committed Jul 22, 2020
1 parent ca7f759 commit 484489d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/cam/mmc/mmc_xpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,11 @@ mmcprobe_start(struct cam_periph *periph, union ccb *start_ccb)
/* Here is the place where the identify fun begins */
switch (softc->action) {
case PROBE_RESET:
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_PROBE, ("Start with PROBE_RESET\n"));
/* FALLTHROUGH */
case PROBE_IDENTIFY:
xpt_path_inq(&start_ccb->cpi, periph->path);
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_PROBE, ("Start with PROBE_RESET\n"));
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_PROBE, ("Start with PROBE_IDENTIFY\n"));
init_standard_ccb(start_ccb, XPT_GET_TRAN_SETTINGS);
xpt_action(start_ccb);
if (cts->ios.power_mode != power_off) {
Expand Down

0 comments on commit 484489d

Please sign in to comment.