[ofw] [patch][opensm] Fix for win8 assert
Alex Naslednikov
xalex at mellanox.co.il
Sun May 22 04:42:54 PDT 2011
[opensm] fix win8 assert (2<=size<=INT_MAX): setvbuf size param change from 0 to 1024
Signed-off by: Galina Tcharny (galina at mellanox.co.il)
Index: B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c
===================================================================
--- B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c (revision 8023)
+++ B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c (revision 8024)
@@ -692,7 +692,7 @@
};
/* force stdout to be line-buffered */
- setvbuf(stdout, NULL, _IOLBF, 0);
+ setvbuf(stdout, NULL, _IOLBF, 1024);
/* Make sure that the opensm and complib were compiled using
same modes (debug/free) */
Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies
More information about the ofw
mailing list