diff options
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r-- | zebra/zserv.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index d1d6a2d3f..2f4bb22ff 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -172,7 +172,7 @@ static void zserv_log_message(const char *errmsg, struct stream *msg, */ static void zserv_client_fail(struct zserv *client) { - flog_warn(ZEBRA_ERR_CLIENT_IO_ERROR, + flog_warn(EC_ZEBRA_CLIENT_IO_ERROR, "Client '%s' encountered an error and is shutting down.", zebra_route_string(client->proto)); @@ -272,7 +272,7 @@ static int zserv_write(struct thread *thread) return 0; zwrite_fail: - flog_warn(ZEBRA_ERR_CLIENT_WRITE_FAILED, + flog_warn(EC_ZEBRA_CLIENT_WRITE_FAILED, "%s: could not write to %s [fd = %d], closing.", __func__, zebra_route_string(client->proto), client->sock); zserv_client_fail(client); @@ -744,7 +744,7 @@ static int zserv_accept(struct thread *thread) client_sock = accept(accept_sock, (struct sockaddr *)&client, &len); if (client_sock < 0) { - flog_err_sys(LIB_ERR_SOCKET, "Can't accept zebra socket: %s", + flog_err_sys(EC_LIB_SOCKET, "Can't accept zebra socket: %s", safe_strerror(errno)); return -1; } @@ -775,7 +775,7 @@ void zserv_start(char *path) /* Make UNIX domain socket. */ zebrad.sock = socket(sa.ss_family, SOCK_STREAM, 0); if (zebrad.sock < 0) { - flog_err_sys(LIB_ERR_SOCKET, "Can't create zserv socket: %s", + flog_err_sys(EC_LIB_SOCKET, "Can't create zserv socket: %s", safe_strerror(errno)); return; } @@ -798,9 +798,8 @@ void zserv_start(char *path) ret = bind(zebrad.sock, (struct sockaddr *)&sa, sa_len); } if (ret < 0) { - flog_err_sys(LIB_ERR_SOCKET, - "Can't bind zserv socket on %s: %s", path, - safe_strerror(errno)); + flog_err_sys(EC_LIB_SOCKET, "Can't bind zserv socket on %s: %s", + path, safe_strerror(errno)); close(zebrad.sock); zebrad.sock = -1; return; @@ -808,7 +807,7 @@ void zserv_start(char *path) ret = listen(zebrad.sock, 5); if (ret < 0) { - flog_err_sys(LIB_ERR_SOCKET, + flog_err_sys(EC_LIB_SOCKET, "Can't listen to zserv socket %s: %s", path, safe_strerror(errno)); close(zebrad.sock); |