[sr-dev] git:master:40c8a62c: siptrace: updated the log messages
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jan 6 11:48:41 CET 2016
Module: kamailio
Branch: master
Commit: 40c8a62ce85cc14ecf4e30b17d322f9a4177ed8e
URL: https://github.com/kamailio/kamailio/commit/40c8a62ce85cc14ecf4e30b17d322f9a4177ed8e
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-01-06T11:45:33+01:00
siptrace: updated the log messages
- debug level and function name are added automatically by LM_*() macros
---
Modified: modules/siptrace/siptrace.c
---
Diff: https://github.com/kamailio/kamailio/commit/40c8a62ce85cc14ecf4e30b17d322f9a4177ed8e.diff
Patch: https://github.com/kamailio/kamailio/commit/40c8a62ce85cc14ecf4e30b17d322f9a4177ed8e.patch
---
diff --git a/modules/siptrace/siptrace.c b/modules/siptrace/siptrace.c
index cc0c0f2..7d5c952 100644
--- a/modules/siptrace/siptrace.c
+++ b/modules/siptrace/siptrace.c
@@ -1667,7 +1667,7 @@ static int trace_send_hep_duplicate(str *body, str *from, str *to, struct dest_i
/* check if from and to are in the same family*/
if(from_su.s.sa_family != to_su.s.sa_family) {
- LOG(L_ERR, "ERROR: trace_send_hep_duplicate: interworking detected ?\n");
+ LM_ERR("interworking detected ?\n");
goto error;
}
@@ -1744,7 +1744,7 @@ static int trace_send_hep_duplicate(str *body, str *from, str *to, struct dest_i
len = sizeof(struct hep_ip6hdr);
}
else {
- LOG(L_ERR, "ERROR: trace_send_hep_duplicate: Unsupported protocol family\n");
+ LM_ERR("Unsupported protocol family\n");
goto error;;
}
@@ -1755,7 +1755,7 @@ static int trace_send_hep_duplicate(str *body, str *from, str *to, struct dest_i
len += sizeof(struct hep_hdr) + body->len;
buffer = (void *)pkg_malloc(len+1);
if (buffer==0){
- LOG(L_ERR, "ERROR: trace_send_hep_duplicate: out of memory\n");
+ LM_ERR("out of memory\n");
goto error;
}
More information about the sr-dev
mailing list