Module: kamailio Branch: 5.4 Commit: 6e2bdf1056e3a31f1ca1f485473fcd26f9ccf044 URL: https://github.com/kamailio/kamailio/commit/6e2bdf1056e3a31f1ca1f485473fcd26...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-10-09T22:31:03+02:00
core: parser - print lenghts in to header parsing debug message
(cherry picked from commit 2648eb330b133a20f1398d59a28c53532106cad3)
---
Modified: src/core/parser/msg_parser.c
---
Diff: https://github.com/kamailio/kamailio/commit/6e2bdf1056e3a31f1ca1f485473fcd26... Patch: https://github.com/kamailio/kamailio/commit/6e2bdf1056e3a31f1ca1f485473fcd26...
---
diff --git a/src/core/parser/msg_parser.c b/src/core/parser/msg_parser.c index aff3c0a989..5ac16f1b18 100644 --- a/src/core/parser/msg_parser.c +++ b/src/core/parser/msg_parser.c @@ -169,9 +169,9 @@ char* get_hdr_field(char* const buf, char* const end, struct hdr_field* const hd hdr->body.len=tmp-hdr->body.s; DBG("<%.*s> [%d]; uri=[%.*s]\n", hdr->name.len, ZSW(hdr->name.s), hdr->body.len, to_b->uri.len, ZSW(to_b->uri.s)); - DBG("to body [%.*s], to tag [%.*s]\n", to_b->body.len, - ZSW(to_b->body.s), to_b->tag_value.len, - ZSW(to_b->tag_value.s)); + DBG("to body (%d)[%.*s], to tag (%d)[%.*s]\n", to_b->body.len, + to_b->body.len, ZSW(to_b->body.s), to_b->tag_value.len, + to_b->tag_value.len, ZSW(to_b->tag_value.s)); break; case HDR_CONTENTLENGTH_T: hdr->body.s=tmp;