Browse Source

core - tm: improved log messages

- udp_send() prints outgoing buffer len as unsigned
- build_uac_req() prints the size of attempted memory chunk allocation
Daniel-Constantin Mierla 15 years ago
parent
commit
839c950901
2 changed files with 2 additions and 2 deletions
  1. 1 1
      modules/tm/t_msgbuilder.c
  2. 1 1
      udp_server.c

+ 1 - 1
modules/tm/t_msgbuilder.c

@@ -1368,7 +1368,7 @@ char* build_uac_req(str* method, str* headers, str* body, dlg_t* dialog, int bra
 
 	buf = shm_malloc(*len + 1);
 	if (!buf) {
-		LOG(L_ERR, "build_uac_req(): no shmem\n");
+		LOG(L_ERR, "build_uac_req(): no shmem (%d)\n", *len);
 		goto error;
 	}
 	

+ 1 - 1
udp_server.c

@@ -568,7 +568,7 @@ again:
 #endif
 	if (n==-1){
 		su2ip_addr(&ip, &dst->to);
-		LOG(L_ERR, "ERROR: udp_send: sendto(sock,%p,%d,0,%s:%d,%d): %s(%d)\n",
+		LOG(L_ERR, "ERROR: udp_send: sendto(sock,%p,%u,0,%s:%d,%d): %s(%d)\n",
 				buf,len, ip_addr2a(&ip), su_getport(&dst->to), tolen,
 				strerror(errno),errno);
 		if (errno==EINTR) goto again;