Module: sip-router Branch: master Commit: b5538401a01057318063a4e4646c9e7a2fb967c0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b5538401...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Jun 12 08:50:26 2013 +0200
mtree: print more details if the record in db is broken
---
modules/mtree/mtree_mod.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/mtree/mtree_mod.c b/modules/mtree/mtree_mod.c index 50e0d4f..0f4348c 100644 --- a/modules/mtree/mtree_mod.c +++ b/modules/mtree/mtree_mod.c @@ -566,7 +566,9 @@ static int mt_load_db(str *tname) if(tprefix.s==NULL || tvalue.s==NULL || 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; }