[sr-dev] git:master: dset.c: logging: convert LOG to LM_*
Ovidiu Sas
osas at voipembedded.com
Fri Oct 3 22:33:56 CEST 2014
Module: sip-router
Branch: master
Commit: bac61abf195ba2bfd33584ef2706e7d00227ee96
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bac61abf195ba2bfd33584ef2706e7d00227ee96
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: Fri Oct 3 16:33:48 2014 -0400
dset.c: logging: convert LOG to LM_*
---
dset.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dset.c b/dset.c
index 174f1e3..8e7410e 100644
--- a/dset.c
+++ b/dset.c
@@ -334,7 +334,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
* of branches, don't try new ones
*/
if (unlikely(nr_branches == MAX_BRANCHES - 1)) {
- LOG(L_ERR, "max nr of branches exceeded\n");
+ LM_ERR("max nr of branches exceeded\n");
ser_error = E_TOO_MANY_BRANCHES;
return -1;
}
@@ -350,14 +350,14 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
}
if (unlikely(luri.len > MAX_URI_SIZE - 1)) {
- LOG(L_ERR, "too long uri: %.*s\n", luri.len, luri.s);
+ LM_ERR("too long uri: %.*s\n", luri.len, luri.s);
return -1;
}
/* copy the dst_uri */
if (dst_uri && dst_uri->len && dst_uri->s) {
if (unlikely(dst_uri->len > MAX_URI_SIZE - 1)) {
- LOG(L_ERR, "too long dst_uri: %.*s\n", dst_uri->len, dst_uri->s);
+ LM_ERR("too long dst_uri: %.*s\n", dst_uri->len, dst_uri->s);
return -1;
}
memcpy(branches[nr_branches].dst_uri, dst_uri->s, dst_uri->len);
@@ -371,7 +371,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
/* copy the path string */
if (unlikely(path && path->len && path->s)) {
if (unlikely(path->len > MAX_PATH_SIZE - 1)) {
- LOG(L_ERR, "too long path: %.*s\n", path->len, path->s);
+ LM_ERR("too long path: %.*s\n", path->len, path->s);
return -1;
}
memcpy(branches[nr_branches].path, path->s, path->len);
@@ -394,7 +394,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
/* copy instance string */
if (unlikely(instance && instance->len && instance->s)) {
if (unlikely(instance->len > MAX_INSTANCE_SIZE - 1)) {
- LOG(L_ERR, "too long instance: %.*s\n",
+ LM_ERR("too long instance: %.*s\n",
instance->len, instance->s);
return -1;
}
@@ -413,7 +413,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
/* copy ruid string */
if (unlikely(ruid && ruid->len && ruid->s)) {
if (unlikely(ruid->len > MAX_RUID_SIZE - 1)) {
- LOG(L_ERR, "too long ruid: %.*s\n",
+ LM_ERR("too long ruid: %.*s\n",
ruid->len, ruid->s);
return -1;
}
@@ -428,7 +428,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
if (unlikely(location_ua && location_ua->len && location_ua->s)) {
if (unlikely(location_ua->len > MAX_UA_SIZE)) {
- LOG(L_ERR, "too long location_ua: %.*s\n",
+ LM_ERR("too long location_ua: %.*s\n",
location_ua->len, location_ua->s);
return -1;
}
@@ -492,7 +492,7 @@ char* print_dset(struct sip_msg* msg, int* len)
*len += CONTACT_LEN + CRLF_LEN + (cnt - 1) * CONTACT_DELIM_LEN;
if (*len + 1 > MAX_REDIRECTION_LEN) {
- LOG(L_ERR, "ERROR: redirection buffer length exceed\n");
+ LM_ERR("redirection buffer length exceed\n");
goto error;
}
More information about the sr-dev
mailing list