[sr-dev] git:master: core: print number of parameters used for searching cfg function

Daniel-Constantin Mierla miconda at gmail.com
Tue May 20 09:16:33 CEST 2014


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue May 20 09:16:01 2014 +0200

core: print number of parameters used for searching cfg function

---

 cfg.y |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cfg.y b/cfg.y
index 2e75bc7..5d140d1 100644
--- a/cfg.y
+++ b/cfg.y
@@ -3275,7 +3275,8 @@ cmd:
 					LOG(L_ERR, "misused command %s\n", $1);
 					yyerror("Command cannot be used in the block\n");
 			} else {
-				LOG(L_ERR, "cfg. parser: failed to find command %s\n", $1);
+				LOG(L_ERR, "cfg. parser: failed to find command %s (params %ld)\n",
+						$1, mod_func_action->val[1].u.number);
 				yyerror("unknown command, missing loadmodule?\n");
 			}
 			free_mod_func_action(mod_func_action);




More information about the sr-dev mailing list