Hide bus reset announcements within bootverbose.
MFC after: 3 days
This commit is contained in:
parent
f3fdfb670c
commit
7b88fb86e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user