Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2018 18:57:54 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329337 - head/sys/cam
Message-ID:  <201802151857.w1FIvsqS014039@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802151857.w1FIvsqS014039>