Skip to contentSkip to conversation

infiniband-diags: ibqueryerrors: don't exit on reset error

PATCH New Ira Weiny 1 participant 1 message Nov 1, 2011 InfiniBand

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 infiniband-diags: ibqueryerrors: don't exit on reset error

IBERROR exits the process. ibqueryerrors should continue despite this error.

---
 src/ibqueryerrors.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
src/ibqueryerrors.c +3 -3
index d37d268..e070baf 100644
@@ -629,7 +629,7 @@ static void clear_port(ib_portid_t * portid, uint16_t cap_mask,
 	if (mask)
 		if (!performance_reset_via(pc, portid, port, mask, ibd_timeout,
 					   IB_GSI_PORT_COUNTERS, ibmad_port))
-			IBERROR("Failed to reset errors %s port %d", node_name,
+			fprintf(stderr, "Failed to reset errors %s port %d\n", node_name,
 				port);
 
 	if (clear_errors && details) {
@@ -653,8 +653,8 @@ static void clear_port(ib_portid_t * portid, uint16_t cap_mask,
 
 		if (!reset_pc_ext(pc, portid, port, mask, ibd_timeout,
 		    ibmad_port))
-			IBERROR("Failed to reset extended data counters %s, "
-				"%s port %d", node_name, portid2str(portid),
+			fprintf(stderr, "Failed to reset extended data counters %s, "
+				"%s port %d\n", node_name, portid2str(portid),
 				port);
 	}
 }
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html