Module: kamailio Branch: master Commit: ec7dd4fa56a052e98008205e187ad6ce9a819142 URL: https://github.com/kamailio/kamailio/commit/ec7dd4fa56a052e98008205e187ad6ce9a819142
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2017-04-23T11:25:44+02:00 core: script callbacks api - updated log messages --- Modified: src/core/script_cb.c --- Diff: https://github.com/kamailio/kamailio/commit/ec7dd4fa56a052e98008205e187ad6ce9a819142.diff Patch: https://github.com/kamailio/kamailio/commit/ec7dd4fa56a052e98008205e187ad6ce9a819142.patch --- diff --git a/src/core/script_cb.c b/src/core/script_cb.c index efd76cf..52d3698 100644 --- a/src/core/script_cb.c +++ b/src/core/script_cb.c @@ -79,18 +79,17 @@ int register_script_cb( cb_function f, unsigned int flags, void *param ) /* type checkings */ if ( (flags&((1<<SCRIPT_CB_NUM)-1))==0 ) { - LOG(L_BUG, "register_script_cb: callback flag not specified\n"); + LM_BUG("callback flag not specified\n"); return -1; } if ( (flags&(~(PRE_SCRIPT_CB|POST_SCRIPT_CB))) >= 1<<SCRIPT_CB_NUM ) { - LOG(L_BUG, "register_script_cb: unsupported callback flags: %u\n", + LM_BUG("unsupported callback flags: %u\n", flags); return -1; } if ( (flags&(PRE_SCRIPT_CB|POST_SCRIPT_CB))==0 || (flags&PRE_SCRIPT_CB && flags&POST_SCRIPT_CB) ) { - LOG(L_BUG, "register_script_cb: callback POST or PRE type must " - "be exactly one\n"); + LM_BUG("callback POST or PRE type must be exactly one\n"); return -1; } @@ -152,7 +151,7 @@ int exec_pre_script_cb( struct sip_msg *msg, enum script_cb_type type) unsigned int flags; if (type > SCRIPT_CB_NUM) { - LOG(L_BUG, "Uknown callback type %d\n", type); + LM_BUG("unknown callback type %d\n", type); return 0; } @@ -174,7 +173,7 @@ int exec_post_script_cb( struct sip_msg *msg, enum script_cb_type type) unsigned int flags; if (type > SCRIPT_CB_NUM) { - LOG(L_BUG, "Uknown callback type %d\n", type); + LM_BUG("unknown callback type %d\n", type); return 1; } _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev