Explorar o código

core: print the len for added header in debug message

Daniel-Constantin Mierla %!s(int64=9) %!d(string=hai) anos
pai
achega
eb9d4e0fe9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data_lump.c

+ 1 - 1
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;
 }