change benign WARN()s to DBG()s
[ust.git] / libust / tracectl.c
index 3f2ee38cdb7357f0bc5b94dc093536ca87acb819..5d06f28264a18d4c69b991afbfd25f32700c4a90 100644 (file)
@@ -232,9 +232,13 @@ void process_blocked_consumers(void)
                                continue;
                        }
                        if(result == 0) {
+                               int res;
                                DBG("PRODUCER END");
 
-                               close(bc->fd_producer);
+                               res = close(bc->fd_producer);
+                               if(res == -1) {
+                                       PERROR("close");
+                               }
 
                                list_del(&bc->list);
 
@@ -650,7 +654,7 @@ static int do_cmd_get_subbuffer(const char *recvbuf, struct ustcomm_source *src)
        if(trace == NULL) {
                int result;
 
-               WARN("Cannot find trace. It was likely destroyed by the user.");
+               DBG("Cannot find trace. It was likely destroyed by the user.");
                result = ustcomm_send_reply(&ustcomm_app.server, "NOTFOUND", src);
                if(result) {
                        ERR("ustcomm_send_reply failed");
@@ -757,7 +761,7 @@ static int do_cmd_put_subbuffer(const char *recvbuf, struct ustcomm_source *src)
        trace = _ltt_trace_find(trace_name);
 
        if(trace == NULL) {
-               WARN("Cannot find trace. It was likely destroyed by the user.");
+               DBG("Cannot find trace. It was likely destroyed by the user.");
                result = ustcomm_send_reply(&ustcomm_app.server, "NOTFOUND", src);
                if(result) {
                        ERR("ustcomm_send_reply failed");
This page took 0.022956 seconds and 4 git commands to generate.