From 865b10d739eab91ea0a87731aaf998ce788924f5 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 13 Jun 2016 17:31:51 +0900 Subject: [PATCH] ecore-con - dont complain about socket setup issues when api handles it ecore-con api returns failure cases and ecore-con shouldt go spamming stderr with this as it's inteded to be handled at the api level, so slience! --- src/lib/ecore_con/ecore_con.c | 6 +++--- src/lib/ecore_con/ecore_con_local.c | 6 +++--- src/lib/ecore_con/ecore_con_local_win32.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 7faf36dd9f..29fe7311bb 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -1966,7 +1966,7 @@ svr_try_connect_plain(Ecore_Con_Server *obj) { /* we lost our server! */ ecore_con_event_server_error(obj, strerror(so_err)); - ERR("Connection lost: %s", strerror(so_err)); + DBG("Connection lost: %s", strerror(so_err)); _ecore_con_server_kill(obj); return ECORE_CON_DISCONNECTED; } @@ -2223,7 +2223,7 @@ _ecore_con_cl_handler(void *data, #endif if (ecore_con_ssl_server_init(obj)) { - ERR("ssl handshaking failed!"); + DBG("ssl handshaking failed!"); svr->handshaking = EINA_FALSE; } else if (!svr->ssl_state) @@ -2418,7 +2418,7 @@ _ecore_con_svr_cl_handler(void *data, { if (ecore_con_ssl_client_init(obj)) { - ERR("ssl handshaking failed!"); + DBG("ssl handshaking failed!"); _ecore_con_client_kill(obj); return ECORE_CALLBACK_RENEW; } diff --git a/src/lib/ecore_con/ecore_con_local.c b/src/lib/ecore_con/ecore_con_local.c index 246b133e6a..6d3e2a594e 100644 --- a/src/lib/ecore_con/ecore_con_local.c +++ b/src/lib/ecore_con/ecore_con_local.c @@ -379,18 +379,18 @@ start: if (bind(svr->fd, (struct sockaddr *)&socket_unix, socket_unix_len) < 0) { - ERR("Local socket '%s' bind failed: %s", buf, strerror(errno)); + DBG("Local socket '%s' bind failed: %s", buf, strerror(errno)); if ((((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_USER) || ((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_SYSTEM)) && (connect(svr->fd, (struct sockaddr *)&socket_unix, socket_unix_len) < 0)) { - ERR("Local socket '%s' connect test failed: %s", buf, strerror(errno)); + DBG("Local socket '%s' connect test failed: %s", buf, strerror(errno)); if (unlink(buf) >= 0) goto start; else { - ERR("Local socket '%s' removal failed: %s", buf, strerror(errno)); + DBG("Local socket '%s' removal failed: %s", buf, strerror(errno)); goto error_fd; } } diff --git a/src/lib/ecore_con/ecore_con_local_win32.c b/src/lib/ecore_con/ecore_con_local_win32.c index 14bf8b2b45..1a1e1454d4 100644 --- a/src/lib/ecore_con/ecore_con_local_win32.c +++ b/src/lib/ecore_con/ecore_con_local_win32.c @@ -432,7 +432,7 @@ ecore_con_local_listen(Ecore_Con_Server *obj) NULL); if (svr->pipe == INVALID_HANDLE_VALUE) { - ERR("Creation of the named pipe '%s' failed", svr->path); + DBG("Creation of the named pipe '%s' failed", svr->path); goto free_path; }