[sr-dev] git:5.2:bbc6f02c: core: parser - print lenghts in to header parsing debug message

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 12 10:50:36 CEST 2020


Module: kamailio
Branch: 5.2
Commit: bbc6f02cd454aa2299e122c5c66c414da4d69389
URL: https://github.com/kamailio/kamailio/commit/bbc6f02cd454aa2299e122c5c66c414da4d69389

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-12T10:49:45+02:00

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

(cherry picked from commit 2648eb330b133a20f1398d59a28c53532106cad3)
(cherry picked from commit 6e2bdf1056e3a31f1ca1f485473fcd26f9ccf044)
(cherry picked from commit 147fd7fc5f3d2495b00961b407ca9aca38040a30)

---

Modified: src/core/parser/msg_parser.c

---

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

---

diff --git a/src/core/parser/msg_parser.c b/src/core/parser/msg_parser.c
index 0a8506e5a3..11781cd929 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