Module: kamailio
Branch: master
Commit: 3fef2b3c18f83add1af13c2b84303b507e27aeca
URL:
https://github.com/kamailio/kamailio/commit/3fef2b3c18f83add1af13c2b84303b5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-03T09:23:08+02:00
core: xavp - more debug details when printing xavp
---
Modified: src/core/xavp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3fef2b3c18f83add1af13c2b84303b5…
Patch:
https://github.com/kamailio/kamailio/commit/3fef2b3c18f83add1af13c2b84303b5…
---
diff --git a/src/core/xavp.c b/src/core/xavp.c
index e1cf394171..66797f910b 100644
--- a/src/core/xavp.c
+++ b/src/core/xavp.c
@@ -540,11 +540,11 @@ void xavp_print_list_content(sr_xavp_t **head, int level)
start = *head;
else
start=*_xavp_list_crt;
- LM_INFO("+++++ start XAVP list: %p (level=%d)\n", start, level);
+ LM_INFO("+++++ start XAVP list: %p (%p) (level=%d)\n", start, head, level);
avp = start;
while(avp)
{
- LM_INFO(" *** XAVP name: %s\n", avp->name.s);
+ LM_INFO(" *** (l:%d - %p) XAVP name: %s\n", level, avp, 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) {
@@ -552,20 +552,20 @@ void xavp_print_list_content(sr_xavp_t **head, int level)
LM_INFO(" XAVP value: <null>\n");
break;
case SR_XTYPE_INT:
- LM_INFO(" XAVP value: %d\n", avp->val.v.i);
+ LM_INFO(" XAVP value (int): %d\n", avp->val.v.i);
break;
case SR_XTYPE_STR:
- LM_INFO(" XAVP value: %s\n", avp->val.v.s.s);
+ LM_INFO(" XAVP value (str): %s\n", avp->val.v.s.s);
break;
case SR_XTYPE_TIME:
- LM_INFO(" XAVP value: %lu\n",
+ LM_INFO(" XAVP value (time): %lu\n",
(long unsigned int)avp->val.v.t);
break;
case SR_XTYPE_LONG:
- LM_INFO(" XAVP value: %ld\n", avp->val.v.l);
+ LM_INFO(" XAVP value (long): %ld\n", avp->val.v.l);
break;
case SR_XTYPE_LLONG:
- LM_INFO(" XAVP value: %lld\n", avp->val.v.ll);
+ LM_INFO(" XAVP value (llong): %lld\n", avp->val.v.ll);
break;
case SR_XTYPE_XAVP:
LM_INFO(" XAVP value: <xavp:%p>\n", avp->val.v.xavp);
@@ -578,6 +578,7 @@ void xavp_print_list_content(sr_xavp_t **head, int level)
LM_INFO(" XAVP value: <data:%p>\n", avp->val.v.data);
break;
}
+ LM_INFO(" *** (l:%d - %p) end\n", level, avp);
avp = avp->next;
}
LM_INFO("----- end XAVP list: %p (level=%d)\n", start, level);