Răsfoiți Sursa

topoh: improve debug info for topoh crash

- print entire socket address for ease of debugging with empty mask ip
souradeep.bera 1 an în urmă
părinte
comite
c6a485b04c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/modules/topoh/topoh_mod.c

+ 2 - 2
src/modules/topoh/topoh_mod.c

@@ -317,8 +317,8 @@ int th_build_socket_strings(socket_info_t *socket)
 	str *socket_ip = NULL;
 
 	if(socket->sockname.s == NULL || socket->sockname.len <= 0) {
-		LM_ERR("the socket [%.*s] has no name - it must be set\n",
-				socket->address_str.len, socket->address_str.s);
+		LM_ERR("the socket %s has no name - it must be set\n",
+				socket->sock_str.s);
 		return -1;
 	}