瀏覽代碼

tcp_ev.h: logging: convert LOG to LM_*

Ovidiu Sas 11 年之前
父節點
當前提交
9ffdc951d3
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      tcp_ev.h

+ 5 - 5
tcp_ev.h

@@ -50,27 +50,27 @@
  * @param proto - protocol used
  * @param proto - protocol used
  */
  */
 #define TCP_EV_CONNECT_RST(err, lip, lport, dst, proto) \
 #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):"")
 			su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
 
 
 /** a connect failed because the remote host/network is unreachable. */
 /** a connect failed because the remote host/network is unreachable. */
 #define TCP_EV_CONNECT_UNREACHABLE(err, lip, lport, dst, proto) \
 #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):"")
 			su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
 
 
 /** a connect attempt did timeout. */
 /** a connect attempt did timeout. */
 #define TCP_EV_CONNECT_TIMEOUT(err, lip, lport, dst, proto) \
 #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):"")
 			su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
 
 
 /** a connect attempt failed because the local ports are exhausted. */
 /** a connect attempt failed because the local ports are exhausted. */
 #define TCP_EV_CONNECT_NO_MORE_PORTS(err, lip, lport, dst, proto) \
 #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):"")
 			su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
 
 
 /** a connect attempt failed for some unknown reason.  */
 /** a connect attempt failed for some unknown reason.  */
 #define TCP_EV_CONNECT_ERR(err, lip, lport, dst, proto) \
 #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):"")
 			su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")