Hello,
What is the logic behind a buffer size of 1024?
Since this is shared code (Linux & Windows) the change should be identified as
Windows specific; as in
#ifdef __WIN__
setvbuf(stdout, NULL, _IOLBF, 1024);
#else
/* force stdout to be line-buffered */
setvbuf(stdout, NULL, _IOLBF, 0);
#endif
>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of Alex Naslednikov
>Sent: Sunday, May 22, 2011 4:43 AM
>To: [email protected]
>Cc: Galina Tcharny; OpenSM
>Subject: [ofw] [patch][opensm] Fix for win8 assert
>
>[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
>
>
>_______________________________________________
>ofw mailing list
>[email protected]
>http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw