[sr-dev] git:master:2648eb33: core: parser - print lenghts in to header parsing debug message

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 9 22:29:33 CEST 2020


Module: kamailio
Branch: master
Commit: 2648eb330b133a20f1398d59a28c53532106cad3
URL: https://github.com/kamailio/kamailio/commit/2648eb330b133a20f1398d59a28c53532106cad3

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-09T22:00:47+02:00

core: parser - print lenghts in to header parsing debug message

---

Modified: src/core/parser/msg_parser.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2648eb330b133a20f1398d59a28c53532106cad3.diff
Patch: https://github.com/kamailio/kamailio/commit/2648eb330b133a20f1398d59a28c53532106cad3.patch

---

diff --git a/src/core/parser/msg_parser.c b/src/core/parser/msg_parser.c
index 6663f51f54..13ab6c14e2 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;




More information about the sr-dev mailing list