mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Don't denounce peripherals on system shutdown. Together with r267321,
we're now back to the pre-r228483 level of default verbosity. This in turn again typically allows for reading information that userland might have printed on the screen before initiating a halt, but still permits to debug potential device shutdown problems on system shutdown via CAM_DEBUG etc. Reviewed by: mav MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
This commit is contained in:
parent
9ad03ef5e7
commit
de6a705e34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267638
@ -597,7 +597,7 @@ cam_periph_invalidate(struct cam_periph *periph)
|
||||
return;
|
||||
|
||||
CAM_DEBUG(periph->path, CAM_DEBUG_INFO, ("Periph invalidated\n"));
|
||||
if (periph->flags & CAM_PERIPH_ANNOUNCED)
|
||||
if ((periph->flags & CAM_PERIPH_ANNOUNCED) && !rebooting)
|
||||
xpt_denounce_periph(periph);
|
||||
periph->flags |= CAM_PERIPH_INVALID;
|
||||
periph->flags &= ~CAM_PERIPH_NEW_DEV_FOUND;
|
||||
@ -663,9 +663,9 @@ camperiphfree(struct cam_periph *periph)
|
||||
xpt_remove_periph(periph);
|
||||
|
||||
xpt_unlock_buses();
|
||||
if (periph->flags & CAM_PERIPH_ANNOUNCED) {
|
||||
if ((periph->flags & CAM_PERIPH_ANNOUNCED) && !rebooting)
|
||||
xpt_print(periph->path, "Periph destroyed\n");
|
||||
} else
|
||||
else
|
||||
CAM_DEBUG(periph->path, CAM_DEBUG_INFO, ("Periph destroyed\n"));
|
||||
|
||||
if (periph->flags & CAM_PERIPH_NEW_DEV_FOUND) {
|
||||
|
Loading…
Reference in New Issue
Block a user