[sr-dev] git:master: tcp_ev.h: logging: convert LOG to LM_*
Ovidiu Sas
osas at voipembedded.com
Fri Oct 3 21:15:25 CEST 2014
Module: sip-router
Branch: master
Commit: 9ffdc951d391fb511da0932c14c00465b1cabd0a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9ffdc951d391fb511da0932c14c00465b1cabd0a
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: Fri Oct 3 15:15:19 2014 -0400
tcp_ev.h: logging: convert LOG to LM_*
---
tcp_ev.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tcp_ev.h b/tcp_ev.h
index 34e401f..a25d59f 100644
--- a/tcp_ev.h
+++ b/tcp_ev.h
@@ -50,27 +50,27 @@
* @param proto - protocol used
*/
#define TCP_EV_CONNECT_RST(err, lip, lport, dst, proto) \
- LOG(L_ERR, "connect %s failed (RST) %s\n", \
+ LM_ERR("connect %s failed (RST) %s\n", \
su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
/** a connect failed because the remote host/network is unreachable. */
#define TCP_EV_CONNECT_UNREACHABLE(err, lip, lport, dst, proto) \
- LOG(L_ERR, "connect %s failed (unreachable) %s\n", \
+ LM_ERR("connect %s failed (unreachable) %s\n", \
su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
/** a connect attempt did timeout. */
#define TCP_EV_CONNECT_TIMEOUT(err, lip, lport, dst, proto) \
- LOG(L_ERR, "connect %s failed (timeout) %s\n", \
+ LM_ERR("connect %s failed (timeout) %s\n", \
su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
/** a connect attempt failed because the local ports are exhausted. */
#define TCP_EV_CONNECT_NO_MORE_PORTS(err, lip, lport, dst, proto) \
- LOG(L_ERR, "connect %s failed (no more ports) %s\n", \
+ LM_ERR("connect %s failed (no more ports) %s\n", \
su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
/** a connect attempt failed for some unknown reason. */
#define TCP_EV_CONNECT_ERR(err, lip, lport, dst, proto) \
- LOG(L_ERR, "connect %s failed %s\n", \
+ LM_ERR("connect %s failed %s\n", \
su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
More information about the sr-dev
mailing list