Re: [ovs-dev] [PATCH v2 2/3] socket-util: error number to string for sockets.

2014-02-10 Thread Gurucharan Shetty
On Mon, Feb 10, 2014 at 1:01 PM, Ben Pfaff wrote: > On Mon, Feb 10, 2014 at 11:16:21AM -0800, Gurucharan Shetty wrote: >> For winsock2 functions, error number has to be converted to string >> using FormatMessage(). >> >> Signed-off-by: Gurucharan Shetty > > You can just include "ovs-thread.h", it

Re: [ovs-dev] [PATCH v2 2/3] socket-util: error number to string for sockets.

2014-02-10 Thread Ben Pfaff
On Mon, Feb 10, 2014 at 11:16:21AM -0800, Gurucharan Shetty wrote: > For winsock2 functions, error number has to be converted to string > using FormatMessage(). > > Signed-off-by: Gurucharan Shetty You can just include "ovs-thread.h", it shouldn't be necessary to explicitly include . I'd make s

[ovs-dev] [PATCH v2 2/3] socket-util: error number to string for sockets.

2014-02-10 Thread Gurucharan Shetty
For winsock2 functions, error number has to be converted to string using FormatMessage(). Signed-off-by: Gurucharan Shetty --- lib/socket-util.c | 25 + lib/socket-util.h |2 ++ 2 files changed, 27 insertions(+) diff --git a/lib/socket-util.c b/lib/socket-util.c in