Module: sip-router
Branch: alexh/3.1/xavp
Commit: d51710a95b033dee783a92e22cff19fd35a2b823
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d51710a…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)speakup.nl>
Date: Mon Dec 20 23:40:31 2010 +0100
core: Set loglevel of pv_xavp_print to INFO
If the function is used in a script, the user will probaly want to see the
result without flooding the logs with debugging info. This change makes the
behaviour consistent with avp_print().
---
xavp.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/xavp.c b/xavp.c
index 6b19d40..e724f95 100644
--- a/xavp.c
+++ b/xavp.c
@@ -467,42 +467,42 @@ void xavp_print_list(sr_xavp_t **head)
avp = *head;
else
avp=*_xavp_list_crt;
- LM_DBG("+++++ XAVP list: %p\n", avp);
+ LM_INFO("+++++ XAVP list: %p\n", avp);
while(avp)
{
- LM_DBG(" *** XAVP name: %s\n", avp->name.s);
- LM_DBG(" XAVP id: %u\n", avp->id);
- LM_DBG(" XAVP value type: %d\n", avp->val.type);
+ LM_INFO(" *** XAVP name: %s\n", avp->name.s);
+ LM_INFO(" XAVP id: %u\n", avp->id);
+ LM_INFO(" XAVP value type: %d\n", avp->val.type);
switch(avp->val.type) {
case SR_XTYPE_NULL:
- LM_DBG(" XAVP value: <null>\n");
+ LM_INFO(" XAVP value: <null>\n");
break;
case SR_XTYPE_INT:
- LM_DBG(" XAVP value: %d\n", avp->val.v.i);
+ LM_INFO(" XAVP value: %d\n", avp->val.v.i);
break;
case SR_XTYPE_STR:
- LM_DBG(" XAVP value: %s\n", avp->val.v.s.s);
+ LM_INFO(" XAVP value: %s\n", avp->val.v.s.s);
break;
case SR_XTYPE_TIME:
- LM_DBG(" XAVP value: %lu\n", avp->val.v.t);
+ LM_INFO(" XAVP value: %lu\n", avp->val.v.t);
break;
case SR_XTYPE_LONG:
- LM_DBG(" XAVP value: %ld\n", avp->val.v.l);
+ LM_INFO(" XAVP value: %ld\n", avp->val.v.l);
break;
case SR_XTYPE_LLONG:
- LM_DBG(" XAVP value: %lld\n", avp->val.v.ll);
+ LM_INFO(" XAVP value: %lld\n", avp->val.v.ll);
break;
case SR_XTYPE_XAVP:
- LM_DBG(" XAVP value: <xavp:%p>\n", avp->val.v.xavp);
+ LM_INFO(" XAVP value: <xavp:%p>\n", avp->val.v.xavp);
xavp_print_list(&avp->val.v.xavp);
break;
case SR_XTYPE_DATA:
- LM_DBG(" XAVP value: <data:%p>\n", avp->val.v.data);
+ LM_INFO(" XAVP value: <data:%p>\n", avp->val.v.data);
break;
}
avp = avp->next;
}
- LM_DBG("----- XAVP list\n");
+ LM_INFO("----- XAVP list\n");
}
#endif