Report the number of remaining retries when we have an error that

we're retrying.
This commit is contained in:
Warner Losh 2018-02-15 18:57:54 +00:00
parent d88fe103eb
commit bc40691e40
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329337

View File

@ -1911,8 +1911,11 @@ cam_periph_error(union ccb *ccb, cam_flags camflags,
error, action_string);
} else if (action_string != NULL)
xpt_print(ccb->ccb_h.path, "%s\n", action_string);
else
xpt_print(ccb->ccb_h.path, "Retrying command\n");
else {
xpt_print(ccb->ccb_h.path,
"Retrying command, %d more tries remain\n",
ccb->ccb_h.retry_count);
}
}
if (devctl_err && (error != 0 || (action & SSQ_PRINT_SENSE) != 0))