[ofa-general] ***SPAM*** [PATCH] infiniband-diags/perfquery.c: Label PortXmit/RcvDataSL counters in headings

Hal Rosenstock hnrose at comcast.net
Fri Mar 13 13:37:18 PDT 2009


Also, some cosmetic formatting changes

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/infiniband-diags/src/perfquery.c b/infiniband-diags/src/perfquery.c
index d35e995..b0bda49 100644
--- a/infiniband-diags/src/perfquery.c
+++ b/infiniband-diags/src/perfquery.c
@@ -331,9 +331,9 @@ void xmt_sl_query(ib_portid_t *portid, int port, int mask)
 		IBERROR("perfslquery");
 
 	mad_dump_perfcounters_xmt_sl(buf, sizeof buf, pc, sizeof pc);
-	printf("# Port counters: %s port %d\n%s", portid2str(portid), port, buf);
+	printf("# PortXmitDataSL counters: %s port %d\n%s", portid2str(portid), port, buf);
 
-	if(reset)
+	if (reset)
 		if (!performance_reset_via(pc, portid, port, mask, ibd_timeout,
 						IB_GSI_PORT_XMIT_DATA_SL, srcport))
 			IBERROR("perfslreset");
@@ -355,9 +355,9 @@ void rcv_sl_query(ib_portid_t *portid, int port, int mask)
 		IBERROR("perfslquery");
 
 	mad_dump_perfcounters_rcv_sl(buf, sizeof buf, pc, sizeof pc);
-	printf("# Port counters: %s port %d\n%s", portid2str(portid), port, buf);
+	printf("# PortRcvDataSL counters: %s port %d\n%s", portid2str(portid), port, buf);
 
-	if(reset)
+	if (reset)
 		if (!performance_reset_via(pc, portid, port, mask, ibd_timeout,
 						IB_GSI_PORT_RCV_DATA_SL, srcport))
 			IBERROR("perfslreset");



More information about the general mailing list