Cleanup: Replace all perror() uses by the PERROR macro
[lttng-tools.git] / tests / regression / tools / live / live_test.c
index aff897724e6a23f3a10b0424571e072146583767..e30c3915232e2de44bd7ba23d450129eeaa66f99 100644 (file)
@@ -43,6 +43,8 @@
 #include <bin/lttng-relayd/lttng-viewer-abi.h>
 #include <common/index/ctf-index.h>
 
+#include <common/compat/endian.h>
+
 #define SESSION1 "test1"
 #define RELAYD_URL "net://localhost"
 #define LIVE_TIMER 2000000
@@ -91,7 +93,7 @@ int connect_viewer(char *hostname)
        }
 
        if ((control_sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
-               perror("Socket");
+               PERROR("Socket");
                ret = -1;
                goto end;
        }
@@ -103,7 +105,7 @@ int connect_viewer(char *hostname)
 
        if (connect(control_sock, (struct sockaddr *) &server_addr,
                                sizeof(struct sockaddr)) == -1) {
-               perror("Connect");
+               PERROR("Connect");
                ret = -1;
                goto end;
        }
@@ -418,7 +420,7 @@ int get_metadata(void)
 
        data = zmalloc(len);
        if (!data) {
-               perror("relay data zmalloc");
+               PERROR("relay data zmalloc");
                goto error;
        }
        do {
This page took 0.02665 seconds and 5 git commands to generate.