Log statements in static inline functions must be ifdefed.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = WSAStartup(verreq, &wsa);
if (ret != 0) {
ret = WSAStartup(verreq, &wsa);
if (ret != 0) {
BT_LOGE("Winsock init failed with error: %d", ret);
BT_LOGE("Winsock init failed with error: %d", ret);
goto end;
}
if (LOBYTE(wsa.wVersion) != 2 || HIBYTE(wsa.wVersion) != 2) {
goto end;
}
if (LOBYTE(wsa.wVersion) != 2 || HIBYTE(wsa.wVersion) != 2) {
BT_LOGE_STR("Could not init winsock 2.2 support");
BT_LOGE_STR("Could not init winsock 2.2 support");
WSACleanup();
ret = -1;
}
WSACleanup();
ret = -1;
}