X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;fp=liblttng-ust-comm%2Flttng-ust-comm.c;h=e7d43e98dc57df9bc048caa19b972a2592d57a91;hb=e55f988e38f1a5c23955595ea327c52cabc5d183;hp=f013c2cd7316e459ec21fd100c4d12d7ff92a025;hpb=1909f468edb241b4dc84d8327efa3a3e3bc319da;p=lttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index f013c2cd..e7d43e98 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -390,8 +390,12 @@ int ustcomm_recv_app_reply(int sock, struct ustcomm_ust_reply *lur, return -EINVAL; } if (lur->ret_code != USTCOMM_OK) { - fprintf(stderr, "remote operation failed with code %d.\n", - lur->ret_code); + /* + * Some errors are normal.. we should put this + * in a debug level message... + * fprintf(stderr, "remote operation failed with code %d.\n", + * lur->ret_code); + */ return lur->ret_code; } return 0; @@ -473,7 +477,10 @@ int ustcomm_recv_fd(int sock) for (i = 0; i < sizeof(int); i++) tmp.vc[i] = CMSG_DATA(cmsg)[i]; ret = tmp.vi; - fprintf(stderr, "received fd %d\n", ret); + /* + * Useful for fd leak debug. + * fprintf(stderr, "received fd %d\n", ret); + */ end: return ret; }