Fix: logging in socket-internal.h
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 7 Jul 2017 20:59:13 +0000 (20:59 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 Jul 2017 19:28:22 +0000 (15:28 -0400)
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>
include/babeltrace/compat/socket-internal.h

index 0bbe83e46b229e3840f82f19bc15c6411c9dd431..2d42bb681e13db97cff975b78688164c8ff13033 100644 (file)
@@ -46,12 +46,16 @@ int bt_socket_init(void)
 
        ret = WSAStartup(verreq, &wsa);
        if (ret != 0) {
+#ifdef BT_LOGE
                BT_LOGE("Winsock init failed with error: %d", ret);
+#endif
                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");
+#endif
                WSACleanup();
                ret = -1;
        }
This page took 0.02396 seconds and 4 git commands to generate.