diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 21:34:28 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 21:34:28 +0200 |
commit | 450971aa994e68f7c62c4d45065223d5cfc4a22f (patch) | |
tree | 0128a1e596823272333d8a6616dd2575e8d7c46b /zebra/zebra_ptm.c | |
parent | zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA (diff) | |
download | frr-450971aa994e68f7c62c4d45065223d5cfc4a22f.tar.xz frr-450971aa994e68f7c62c4d45065223d5cfc4a22f.zip |
*: LIB_[ERR|WARN] -> EC_LIB
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r-- | zebra/zebra_ptm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index f1fa8cc67..1d7a59e06 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -181,7 +181,7 @@ static int zebra_ptm_flush_messages(struct thread *thread) switch (buffer_flush_available(ptm_cb.wb, ptm_cb.ptm_sock)) { case BUFFER_ERROR: - flog_err_sys(LIB_ERR_SOCKET, "%s ptm socket error: %s", + flog_err_sys(EC_LIB_SOCKET, "%s ptm socket error: %s", __func__, safe_strerror(errno)); close(ptm_cb.ptm_sock); ptm_cb.ptm_sock = -1; @@ -207,7 +207,7 @@ static int zebra_ptm_send_message(char *data, int size) errno = 0; switch (buffer_write(ptm_cb.wb, ptm_cb.ptm_sock, data, size)) { case BUFFER_ERROR: - flog_err_sys(LIB_ERR_SOCKET, "%s ptm socket error: %s", + flog_err_sys(EC_LIB_SOCKET, "%s ptm socket error: %s", __func__, safe_strerror(errno)); close(ptm_cb.ptm_sock); ptm_cb.ptm_sock = -1; @@ -649,7 +649,7 @@ int zebra_ptm_sock_read(struct thread *thread) if (((rc == 0) && !errno) || (errno && (errno != EWOULDBLOCK) && (errno != EAGAIN))) { - flog_err_sys(LIB_ERR_SOCKET, + flog_err_sys(EC_LIB_SOCKET, "%s routing socket error: %s(%d) bytes %d", __func__, safe_strerror(errno), errno, rc); |