[openib-general] [PATCH TRIVIAL] opensm: libibmad: fix umad retry counter

Sasha Khapyorsky sashak at voltaire.com
Mon Jun 19 11:30:46 PDT 2006


Hi Hal,

This fixes umad send/recv retry counter in error report.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---

 libibmad/src/rpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index a3b29c9..e929ba4 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -132,7 +132,7 @@ _do_madrpc(void *umad, int agentid, int 
 
 	for (retries = 0; retries < madrpc_retries; retries++) {
 		if (retries) {
-			ERRS("retry %d (timeout %d ms)", retries + 1, timeout);
+			ERRS("retry %d (timeout %d ms)", retries, timeout);
 			/* Restore user MAD header */
 			memcpy(&mad->addr, &addr, sizeof addr);
 		}




More information about the general mailing list