diff --git a/modules/callops/callops.c b/modules/callops/callops.c index 41c22398ac3..f324d33a0ff 100644 --- a/modules/callops/callops.c +++ b/modules/callops/callops.c @@ -494,7 +494,7 @@ static int call_attended_transfer(struct dlg_cell *dlg, struct sip_msg *msg) init_callid.len, init_callid.s); } } else { - LM_ERR("could not find the transfered callid"); + LM_ERR("could not find the transfered callid\n"); } call_dlg_api.store_dlg_value(rpl_dlg, &call_transfer_param, &rpl_leg); diff --git a/modules/cfgutils/cfgutils.c b/modules/cfgutils/cfgutils.c index 6fbf27a862c..bfd3ea69f7e 100644 --- a/modules/cfgutils/cfgutils.c +++ b/modules/cfgutils/cfgutils.c @@ -408,7 +408,7 @@ mi_response_t *mi_check_hash(const mi_params_t *params, return init_mi_error(404, MI_SSTR("Functionality disabled")); } else { if (MD5File(tmp, hash_file) != 0) { - LM_ERR("could not hash the config file"); + LM_ERR("could not hash the config file\n"); return init_mi_error(500, MI_SSTR("Internal error")); } diff --git a/modules/mmgeoip/mmgeoip.c b/modules/mmgeoip/mmgeoip.c index 86e2ef6053b..34134258f7e 100644 --- a/modules/mmgeoip/mmgeoip.c +++ b/modules/mmgeoip/mmgeoip.c @@ -60,7 +60,7 @@ int parse_mem_option( unsigned int type, void *val) #ifdef GEOIP return legacy_parse_cache_type((char *)val); #else - LM_INFO("Parameter only supported for legacy GeoIP, ignoring..."); + LM_INFO("Parameter only supported for legacy GeoIP, ignoring...\n"); return 0; #endif } diff --git a/modules/presence_dfks/presence_dfks.c b/modules/presence_dfks/presence_dfks.c index 84b947b42fe..729a2d43b56 100644 --- a/modules/presence_dfks/presence_dfks.c +++ b/modules/presence_dfks/presence_dfks.c @@ -966,7 +966,7 @@ void mi_feature_notify(int sender, void *_params) notify_body = build_feature_notify(¶ms->pres_uri, params->feature_idx, 0, ¶ms->param, &ct_type); if (notify_body == (str*)-1) { - LM_ERR("Failed to build NOTIFY body"); + LM_ERR("Failed to build NOTIFY body\n"); goto end; } diff --git a/modules/proto_smpp/smpp.c b/modules/proto_smpp/smpp.c index 87669986c23..1174bffc4c6 100644 --- a/modules/proto_smpp/smpp.c +++ b/modules/proto_smpp/smpp.c @@ -76,7 +76,7 @@ rw_lock_t *smpp_lock; /* reader-writers lock for reloading the data */ static uint32_t get_payload_from_header(char *payload, smpp_header_t *header) { if (!payload || !header) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -92,7 +92,7 @@ static uint32_t get_payload_from_header(char *payload, smpp_header_t *header) static uint32_t get_payload_from_bind_transceiver_body(char *body, smpp_bind_transceiver_t *transceiver) { if (!body || !transceiver) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -111,7 +111,7 @@ static uint32_t get_payload_from_bind_transceiver_body(char *body, smpp_bind_tra static uint32_t get_payload_from_bind_transceiver_resp_body(char *body, smpp_bind_transceiver_resp_t *transceiver_resp) { if (!body || !transceiver_resp) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -124,7 +124,7 @@ static uint32_t get_payload_from_bind_transceiver_resp_body(char *body, smpp_bin uint32_t get_payload_from_submit_sm_body(char *body, smpp_submit_sm_t *submit_sm) { if (!body || !submit_sm) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -154,7 +154,7 @@ uint32_t get_payload_from_submit_sm_body(char *body, smpp_submit_sm_t *submit_sm uint32_t get_payload_from_deliver_sm_resp_body(char *body, smpp_deliver_sm_resp_t *deliver_sm_resp) { if (!body || !deliver_sm_resp) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -165,7 +165,7 @@ uint32_t get_payload_from_deliver_sm_resp_body(char *body, smpp_deliver_sm_resp_ uint32_t get_payload_from_submit_sm_resp_body(char *body, smpp_submit_sm_resp_t *submit_sm_resp) { if (!body || !submit_sm_resp) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); return 0; } @@ -176,7 +176,7 @@ uint32_t get_payload_from_submit_sm_resp_body(char *body, smpp_submit_sm_resp_t static int build_bind_transceiver_request(smpp_bind_transceiver_req_t **preq, smpp_session_t *session) { if (!preq || !session) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); goto err; } @@ -184,25 +184,25 @@ static int build_bind_transceiver_request(smpp_bind_transceiver_req_t **preq, sm smpp_bind_transceiver_req_t *req = pkg_malloc(sizeof(*req)); *preq = req; if (!req) { - LM_ERR("malloc error for request"); + LM_ERR("malloc error for request\n"); goto err; } smpp_header_t *header = pkg_malloc(sizeof(*header)); if (!header) { - LM_ERR("malloc error for header"); + LM_ERR("malloc error for header\n"); goto header_err; } smpp_bind_transceiver_t *body = pkg_malloc(sizeof(*body)); if (!body) { - LM_ERR("malloc error for body"); + LM_ERR("malloc error for body\n"); goto body_err; } req->payload.s = pkg_malloc(REQ_MAX_SZ(BIND_RECEIVER)); if (!req->payload.s) { - LM_ERR("malloc error for payload"); + LM_ERR("malloc error for payload\n"); goto payload_err; } @@ -245,7 +245,7 @@ static int build_bind_resp_request(smpp_bind_transceiver_resp_req_t **preq, uint uint32_t command_status, uint32_t seq_no, char *system_id) { if (!preq) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); goto err; } @@ -253,25 +253,25 @@ static int build_bind_resp_request(smpp_bind_transceiver_resp_req_t **preq, uint smpp_bind_transceiver_resp_req_t *req = pkg_malloc(sizeof(*req)); *preq = req; if (!req) { - LM_ERR("malloc error for request"); + LM_ERR("malloc error for request\n"); goto err; } smpp_header_t *header = pkg_malloc(sizeof(*header)); if (!header) { - LM_ERR("malloc error for header"); + LM_ERR("malloc error for header\n"); goto header_err; } smpp_bind_transceiver_resp_t *body = pkg_malloc(sizeof(*body)); if (!body) { - LM_ERR("malloc error for body"); + LM_ERR("malloc error for body\n"); goto body_err; } req->payload.s = pkg_malloc(REQ_MAX_SZ(BIND_TRANSCEIVER_RESP)); if (!req->payload.s) { - LM_ERR("malloc error for payload"); + LM_ERR("malloc error for payload\n"); goto payload_err; } @@ -307,7 +307,7 @@ static int build_bind_resp_request(smpp_bind_transceiver_resp_req_t **preq, uint static int build_enquire_link_request(smpp_enquire_link_req_t **preq, smpp_session_t *session) { if (!preq || !session) { - LM_ERR("NULL param"); + LM_ERR("NULL param\n"); goto err; } @@ -315,19 +315,19 @@ static int build_enquire_link_request(smpp_enquire_link_req_t **preq, smpp_sessi smpp_enquire_link_req_t *req = pkg_malloc(sizeof(*req)); *preq = req; if (!req) { - LM_ERR("malloc error for request"); + LM_ERR("malloc error for request\n"); goto err; } smpp_header_t *header = pkg_malloc(sizeof(*header)); if (!header) { - LM_ERR("malloc error for header"); + LM_ERR("malloc error for header\n"); goto header_err; } req->payload.s = pkg_malloc(REQ_MAX_SZ(ENQUIRE_LINK)); if (!req->payload.s) { - LM_ERR("malloc error for payload"); + LM_ERR("malloc error for payload\n"); goto payload_err; } @@ -599,7 +599,7 @@ static int build_submit_or_deliver_request(smpp_submit_sm_req_t **preq, char *start; if (!preq || !src || !dst || !message) { - LM_ERR("NULL params"); + LM_ERR("NULL params\n"); goto err; } @@ -607,25 +607,25 @@ static int build_submit_or_deliver_request(smpp_submit_sm_req_t **preq, smpp_submit_sm_req_t *req = pkg_malloc(sizeof(*req)); *preq = req; if (!req) { - LM_ERR("malloc error for request"); + LM_ERR("malloc error for request\n"); goto err; } smpp_header_t *header = pkg_malloc(sizeof(*header)); if (!header) { - LM_ERR("malloc error for header"); + LM_ERR("malloc error for header\n"); goto header_err; } smpp_submit_sm_t *body = pkg_malloc(sizeof(*body)); if (!body) { - LM_ERR("malloc error for body"); + LM_ERR("malloc error for body\n"); goto body_err; } req->payload.s = pkg_malloc(REQ_MAX_SZ(SUBMIT_SM)); if (!req->payload.s) { - LM_ERR("malloc error for payload"); + LM_ERR("malloc error for payload\n"); goto payload_err; } @@ -703,7 +703,7 @@ static int build_submit_or_deliver_request(smpp_submit_sm_req_t **preq, static int build_submit_or_deliver_resp_request(smpp_submit_sm_resp_req_t **preq, uint32_t command_id, uint32_t command_status, uint32_t sequence_number) { if (!preq) { - LM_ERR("NULL param"); + LM_ERR("NULL param\n"); goto err; } @@ -711,25 +711,25 @@ static int build_submit_or_deliver_resp_request(smpp_submit_sm_resp_req_t **preq smpp_submit_sm_resp_req_t *req = pkg_malloc(sizeof(*req)); *preq = req; if (!req) { - LM_ERR("malloc error for request"); + LM_ERR("malloc error for request\n"); goto err; } smpp_header_t *header = pkg_malloc(sizeof(*header)); if (!header) { - LM_ERR("malloc error for header"); + LM_ERR("malloc error for header\n"); goto header_err; } smpp_submit_sm_resp_t *body = pkg_malloc(sizeof(*body)); if (!body) { - LM_ERR("malloc error for body"); + LM_ERR("malloc error for body\n"); goto body_err; } req->payload.s = pkg_malloc(REQ_MAX_SZ(SUBMIT_SM_RESP)); if (!req->payload.s) { - LM_ERR("malloc error for payload"); + LM_ERR("malloc error for payload\n"); goto payload_err; } diff --git a/modules/qrouting/qr_stats.c b/modules/qrouting/qr_stats.c index 445da0aa0a7..7f3ca3646eb 100644 --- a/modules/qrouting/qr_stats.c +++ b/modules/qrouting/qr_stats.c @@ -412,7 +412,7 @@ void qr_rld_prepare_part(void *param) memset(pl, 0, sizeof *pl); if (!(pl->rw_lock = lock_init_rw())) { - LM_ERR("failed to init rw lock"); + LM_ERR("failed to init rw lock\n"); goto error; } diff --git a/modules/stir_shaken/stir_shaken.c b/modules/stir_shaken/stir_shaken.c index eb9bd3db4d0..12552245777 100644 --- a/modules/stir_shaken/stir_shaken.c +++ b/modules/stir_shaken/stir_shaken.c @@ -535,7 +535,7 @@ static int build_unsigned_pport(str *buf, time_t iat_ts, str *attest, hdr_json_str.s = build_pport_hdr_json(cr_url); if (!hdr_json_str.s) { - LM_ERR("Failed to build PASSporT's json header"); + LM_ERR("Failed to build PASSporT's json header\n"); return -1; } hdr_json_str.len = strlen(hdr_json_str.s); @@ -545,7 +545,7 @@ static int build_unsigned_pport(str *buf, time_t iat_ts, str *attest, payload_json_str.s = build_pport_payload_json(attest, orig_tn, dest_tn, iat_ts, origid); if (!payload_json_str.s) { - LM_ERR("Failed to build PASSporT's json payload"); + LM_ERR("Failed to build PASSporT's json payload\n"); goto error; } payload_json_str.len = strlen(payload_json_str.s); @@ -939,7 +939,7 @@ static int w_stir_auth(struct sip_msg *msg, str *attest, str *origid, } if (get_header_by_static_name(msg, "Identity")) { - LM_INFO("Identity header already exists"); + LM_INFO("Identity header already exists\n"); return -2; }