Browse code

mtree: print more details if the record in db is broken

Daniel-Constantin Mierla authored on 12/06/2013 06:50:26
Showing 1 changed files
... ...
@@ -566,7 +566,9 @@ static int mt_load_db(str *tname)
566 566
 			if(tprefix.s==NULL || tvalue.s==NULL
567 567
 					|| tprefix.len<=0 || tvalue.len<=0)
568 568
 			{
569
-				LM_ERR("Error - bad values in db (%p:%p)\n", tprefix.s, tvalue.s);
569
+				LM_ERR("Error - bad record in db"
570
+						" (prefix: %p/%d - value: %p/%d)\n",
571
+						tprefix.s, tprefix.len, tvalue.s, tvalue.len);
570 572
 				continue;
571 573
 			}
572 574