From bc40691e40b4560489698f8d9cdee1e7c6d00581 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 15 Feb 2018 18:57:54 +0000 Subject: [PATCH] Report the number of remaining retries when we have an error that we're retrying. --- sys/cam/cam_periph.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index e563b7f46ab..1c8365655fc 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -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))