Browse Source

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

Daniel-Constantin Mierla 12 years ago
parent
commit
b5538401a0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/mtree/mtree_mod.c

+ 3 - 1
modules/mtree/mtree_mod.c

@@ -566,7 +566,9 @@ static int mt_load_db(str *tname)
 			if(tprefix.s==NULL || tvalue.s==NULL
 			if(tprefix.s==NULL || tvalue.s==NULL
 					|| tprefix.len<=0 || tvalue.len<=0)
 					|| tprefix.len<=0 || tvalue.len<=0)
 			{
 			{
-				LM_ERR("Error - bad values in db (%p:%p)\n", tprefix.s, tvalue.s);
+				LM_ERR("Error - bad record in db"
+						" (prefix: %p/%d - value: %p/%d)\n",
+						tprefix.s, tprefix.len, tvalue.s, tvalue.len);
 				continue;
 				continue;
 			}
 			}