mmccam: mmc_xpt: We're only interested about losing the device

Remove all the uneeded printfs

Reviewed by:	imp, kibab
Differential Revision:	https://reviews.freebsd.org/D25948
This commit is contained in:
Emmanuel Vadot 2020-08-04 20:00:21 +00:00
parent 1164f7a566
commit 25f965fdaa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363860

View File

@ -199,11 +199,6 @@ mmc_dev_async(u_int32_t async_code, struct cam_eb *bus, struct cam_et *target,
struct cam_ed *device, void *async_arg)
{
printf("mmc_dev_async(async_code=0x%x, path_id=%d, target_id=%x, lun_id=%" SCNx64 "\n",
async_code,
bus->path_id,
target->target_id,
device->lun_id);
/*
* We only need to handle events for real devices.
*/
@ -211,24 +206,11 @@ mmc_dev_async(u_int32_t async_code, struct cam_eb *bus, struct cam_et *target,
|| device->lun_id == CAM_LUN_WILDCARD)
return;
if (async_code == AC_LOST_DEVICE) {
if ((device->flags & CAM_DEV_UNCONFIGURED) == 0) {
printf("AC_LOST_DEVICE -> set to unconfigured\n");
device->flags |= CAM_DEV_UNCONFIGURED;
xpt_release_device(device);
} else {
printf("AC_LOST_DEVICE on unconfigured device\n");
}
} else if (async_code == AC_FOUND_DEVICE) {
printf("Got AC_FOUND_DEVICE -- whatever...\n");
} else if (async_code == AC_PATH_REGISTERED) {
printf("Got AC_PATH_REGISTERED -- whatever...\n");
} else if (async_code == AC_PATH_DEREGISTERED ) {
printf("Got AC_PATH_DEREGISTERED -- whatever...\n");
} else if (async_code == AC_UNIT_ATTENTION) {
printf("Got interrupt generated by the card and ignored it\n");
} else
panic("Unknown async code\n");
if (async_code == AC_LOST_DEVICE &&
(device->flags & CAM_DEV_UNCONFIGURED) == 0) {
device->flags |= CAM_DEV_UNCONFIGURED;
xpt_release_device(device);
}
}
/* Taken from nvme_scan_lun, thanks to bsdimp@ */