aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-02-15 18:57:54 +0000
committerWarner Losh <imp@FreeBSD.org>2018-02-15 18:57:54 +0000
commitbc40691e40b4560489698f8d9cdee1e7c6d00581 (patch)
tree284d35cf8411c2c532c8da91cbc34bf55adfe759
parentd88fe103eb63660888ad7386393f75e85090b065 (diff)
downloadsrc-bc40691e40b4560489698f8d9cdee1e7c6d00581.tar.gz
src-bc40691e40b4560489698f8d9cdee1e7c6d00581.zip
Report the number of remaining retries when we have an error that
we're retrying.
Notes
Notes: svn path=/head/; revision=329337
-rw-r--r--sys/cam/cam_periph.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index e563b7f46abb..1c8365655fcd 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))