Browse Source

initiator: fix logging of retry count

Eric Helgeson 1 year ago
parent
commit
45f8e73925
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/BlueSCSI_initiator.cpp

+ 1 - 1
src/BlueSCSI_initiator.cpp

@@ -314,7 +314,7 @@ void scsiInitiatorMainLoop()
 
             if (g_initiator_state.retrycount < 5)
             {
-                log("Retrying.. ", g_initiator_state.retrycount, "/5");
+                log("Retrying.. ", g_initiator_state.retrycount + 1, "/5");
                 delay_with_poll(200);
                 // This reset causes some drives to hang and seems to have no effect if left off.
                 // scsiHostPhyReset();