[ofw] [Patch] [Tools][infiniband-diags]
Irena Kruchkovsky
irena at mellanox.co.il
Wed Jul 28 04:36:21 PDT 2010
A patch that fixes the GUID output in ibstat to work correctly in windows 2003.
Index: D:/Windows/MLNX_VPI/tools/infiniband-diags/src/ibstat.c
===================================================================
--- D:/Windows/MLNX_VPI/tools/infiniband-diags/src/ibstat.c (revision 6199)
+++ D:/Windows/MLNX_VPI/tools/infiniband-diags/src/ibstat.c (revision 6200)
@@ -72,9 +72,9 @@
printf("\tNumber of ports: %d\n", ca->numports);
printf("\tFirmware version: %s\n", ca->fw_ver);
printf("\tHardware version: %s\n", ca->hw_ver);
- printf("\tNode GUID: 0x%016llx\n",
+ printf("\tNode GUID: 0x%016I64x\n",
(long long unsigned)ntohll(ca->node_guid));
- printf("\tSystem image GUID: 0x%016llx\n",
+ printf("\tSystem image GUID: 0x%016I64x\n",
(long long unsigned)ntohll(ca->system_guid));
}
@@ -122,7 +122,7 @@
printf("%sLMC: %d\n", pre, port->lmc);
printf("%sSM lid: %d\n", pre, port->sm_lid);
printf("%sCapability mask: 0x%08x\n", pre, ntohl(port->capmask));
- printf("%sPort GUID: 0x%016llx\n", pre,
+ printf("%sPort GUID: 0x%016I64x\n", pre,
(long long unsigned)ntohll(port->port_guid));
return 0;
}
Example:
Previous output:
System image GUID: 0x000000000003cc13
Current output:
System image GUID: 0x0002c9020003cc13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100728/a4c07a20/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibstatGUID.patch
Type: application/octet-stream
Size: 1068 bytes
Desc: ibstatGUID.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100728/a4c07a20/attachment.obj>
More information about the ofw
mailing list