Hide bus reset announcements within bootverbose.

MFC after:	3 days
This commit is contained in:
Matt Jacob 2007-04-07 18:15:52 +00:00
parent f3fdfb670c
commit 7b88fb86e3

View File

@ -2963,8 +2963,13 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
break;
}
case XPT_RESET_DEV:
xpt_print(ccb->ccb_h.path, "reset %s\n",
ccb->ccb_h.func_code == XPT_RESET_BUS? "bus" : "device");
if (ccb->ccb_h.func_code == XPT_RESET_BUS) {
if (bootverbose) {
xpt_print(ccb->ccb_h.path, "reset bus\n");
}
} else {
xpt_print(ccb->ccb_h.path, "reset device\n");
}
CAMLOCK_2_MPTLOCK(mpt);
(void) mpt_bus_reset(mpt, tgt, lun, FALSE);
MPTLOCK_2_CAMLOCK(mpt);