Cleanup: Replace all perror() uses by the PERROR macro
[lttng-tools.git] / tests / regression / tools / live / live_test.c
index d2c9050f615fe6e3f04a4935afca7798e45f1de6..e30c3915232e2de44bd7ba23d450129eeaa66f99 100644 (file)
@@ -93,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;
        }
@@ -105,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;
        }
@@ -420,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.028177 seconds and 5 git commands to generate.