Also, some cosmetic formatting changes

Signed-off-by: Hal Rosenstock <[email protected]>
---
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");
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to