Author: imp
Date: Thu Feb 15 18:57:54 2018
New Revision: 329337
URL: https://svnweb.freebsd.org/changeset/base/329337

Log:
  Report the number of remaining retries when we have an error that
  we're retrying.

Modified:
  head/sys/cam/cam_periph.c

Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c   Thu Feb 15 18:57:22 2018        (r329336)
+++ head/sys/cam/cam_periph.c   Thu Feb 15 18:57:54 2018        (r329337)
@@ -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))
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to