Module: sip-router Branch: 4.0 Commit: fd4a2dde96a692c165f382839c3bef8636dfd9e2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fd4a2dde...
Author: Juha Heinanen jh@tutpro.com Committer: Juha Heinanen jh@tutpro.com Date: Thu Aug 22 08:20:52 2013 +0300
modules/lcr: added some linefeed chars missing from syslog messages
- Patch provided by Kevin Scott Adams. (cherry picked from commit d03651fb4c3a6b50923029e121eed201fb1ff550)
---
modules/lcr/lcr_mod.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c index 9c5ff3f..b204721 100644 --- a/modules/lcr/lcr_mod.c +++ b/modules/lcr/lcr_mod.c @@ -1235,7 +1235,7 @@ int reload_tables() request_uri_re = from_uri_re = 0;
do { - LM_DBG("loading, cycle %d with <%d> rows", n++, RES_ROW_N(res)); + LM_DBG("loading, cycle %d with <%d> rows\n", n++, RES_ROW_N(res)); for (i = 0; i < RES_ROW_N(res); i++) {
request_uri_re = from_uri_re = 0; @@ -1447,7 +1447,7 @@ int reload_tables()
n = 0; do { - LM_DBG("loading, cycle %d with <%d> rows", n++, RES_ROW_N(res)); + LM_DBG("loading, cycle %d with <%d> rows\n", n++, RES_ROW_N(res)); for (i = 0; i < RES_ROW_N(res); i++) { row = RES_ROWS(res) + i; if ((VAL_NULL(ROW_VALUES(row)) == 1) || @@ -1898,7 +1898,7 @@ static int load_gws(struct sip_msg* _m, int argc, action_u_t argv[]) if ((rule->from_uri_len != 0) && (pcre_exec(rule->from_uri_re, NULL, from_uri.s, from_uri.len, 0, 0, NULL, 0) < 0)) { - LM_DBG("from uri <%.*s> did not match to from regex <%.*s>", + LM_DBG("from uri <%.*s> did not match to from regex <%.*s>\n", from_uri.len, from_uri.s, rule->from_uri_len, rule->from_uri); goto next; @@ -1908,7 +1908,7 @@ static int load_gws(struct sip_msg* _m, int argc, action_u_t argv[]) if ((rule->request_uri_len != 0) && (pcre_exec(rule->request_uri_re, NULL, request_uri->s, request_uri->len, 0, 0, NULL, 0) < 0)) { - LM_DBG("request uri <%.*s> did not match to request regex <%.*s>", + LM_DBG("request uri <%.*s> did not match to request regex <%.*s>\n", request_uri->len, request_uri->s, rule->request_uri_len, rule->request_uri); goto next; @@ -2284,7 +2284,7 @@ static int next_gw(struct sip_msg* _m, char* _s1, char* _s2) delete_avp(defunct_gw_avp_type, defunct_gw_avp); val.n = gw_index; add_avp(defunct_gw_avp_type, defunct_gw_avp, val); - LM_DBG("added defunct_gw_avp <%u>", addr.u.addr32[0]); + LM_DBG("added defunct_gw_avp <%u>\n", addr.u.addr32[0]); }
return 1;