projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: logging in socket-internal.h
[babeltrace.git]
/
include
/
babeltrace
/
compat
/
socket-internal.h
diff --git
a/include/babeltrace/compat/socket-internal.h
b/include/babeltrace/compat/socket-internal.h
index 0bbe83e46b229e3840f82f19bc15c6411c9dd431..2d42bb681e13db97cff975b78688164c8ff13033 100644
(file)
--- a/
include/babeltrace/compat/socket-internal.h
+++ b/
include/babeltrace/compat/socket-internal.h
@@
-46,12
+46,16
@@
int bt_socket_init(void)
ret = WSAStartup(verreq, &wsa);
if (ret != 0) {
ret = WSAStartup(verreq, &wsa);
if (ret != 0) {
+#ifdef BT_LOGE
BT_LOGE("Winsock init failed with error: %d", ret);
BT_LOGE("Winsock init failed with error: %d", ret);
+#endif
goto end;
}
if (LOBYTE(wsa.wVersion) != 2 || HIBYTE(wsa.wVersion) != 2) {
goto end;
}
if (LOBYTE(wsa.wVersion) != 2 || HIBYTE(wsa.wVersion) != 2) {
+#ifdef BT_LOGE_STR
BT_LOGE_STR("Could not init winsock 2.2 support");
BT_LOGE_STR("Could not init winsock 2.2 support");
+#endif
WSACleanup();
ret = -1;
}
WSACleanup();
ret = -1;
}
This page took
0.027197 seconds
and
4
git commands to generate.