Procházet zdrojové kódy

topoh: improve debug info for topoh crash

- print entire socket address for ease of debugging with empty mask ip
souradeep.bera před 1 rokem
rodič
revize
c6a485b04c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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;
 	}