diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 5df9f5b660cb..6df914430d7d 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1354,6 +1354,7 @@ camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, } *timeout = 0; error = ERESTART; + *print = 0; break; } /* FALLTHROUGH */ @@ -1683,8 +1684,10 @@ cam_periph_error(union ccb *ccb, cam_flags camflags, } else if (sense_flags & SF_NO_RETRY) { error = EIO; action_string = "Retry was blocked"; - } else + } else { error = ERESTART; + print = 0; + } break; case CAM_RESRC_UNAVAIL: /* Wait a bit for the resource shortage to abate. */