[sr-dev] git:master: htable: debug message to show initialization of hash table structures

Daniel-Constantin Mierla miconda at gmail.com
Fri Jul 25 14:44:40 CEST 2014


Module: sip-router
Branch: master
Commit: 213ad230a87638bbd0f1591c8b7cefdd4e6b1fd3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=213ad230a87638bbd0f1591c8b7cefdd4e6b1fd3

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Jul 25 14:43:45 2014 +0200

htable: debug message to show initialization of hash table structures

---

 modules/htable/ht_api.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/htable/ht_api.c b/modules/htable/ht_api.c
index 1acdf50..f5232cb 100644
--- a/modules/htable/ht_api.c
+++ b/modules/htable/ht_api.c
@@ -276,6 +276,8 @@ int ht_init_tables(void)
 
 	while(ht)
 	{
+		LM_DBG("initializing htable [%.*s] with nr. of slots: %d\n",
+				ht->name.len, ht->name.s, ht->htsize);
 		ht->entries = (ht_entry_t*)shm_malloc(ht->htsize*sizeof(ht_entry_t));
 		if(ht->entries==NULL)
 		{




More information about the sr-dev mailing list