[sr-dev] git:master:eb9d4e0f: core: print the len for added header in debug message

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 13 14:28:10 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-10-13T14:27:44+02:00

core: print the len for added header in debug message

---

Modified: data_lump.c

---

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

---

diff --git a/data_lump.c b/data_lump.c
index 5b87b8e..949b03f 100644
--- a/data_lump.c
+++ b/data_lump.c
@@ -773,7 +773,7 @@ int sr_hdr_add(sip_msg_t *msg, str *sname, str *sbody)
 		pkg_free(h.s);
 		return -1;
 	}
-	LM_DBG("added new header [%s]\n", h.s);
+	LM_DBG("added new header (%d) [%s]\n", h.len, h.s);
 	return 0;
 }
 




More information about the sr-dev mailing list