Hi, I wonder how useful are -c and -C options (theorically they check the config file).
While they detect some obvious errors, they fail to detect errors like:
xlog("L_HI_ALL", "What is it?\n");
modparam("wrong_module_name","wrong_param","wrong_value").
So, how much could I trust this utility?
Thanks.
Sounds like a grammatical/syntactical check only, not semantic. For the latter, some sort of fairly sophisticated compilation of runtime environment would be needed. Probably not worth the development effort, just to have a 'lint' almost nobody uses.
-- Sent from mobile device
On May 28, 2009, at 3:23 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
Hi, I wonder how useful are -c and -C options (theorically they check the config file).
While they detect some obvious errors, they fail to detect errors like:
xlog("L_HI_ALL", "What is it?\n");
modparam("wrong_module_name","wrong_param","wrong_value").
So, how much could I trust this utility?
Thanks.
-- Iñaki Baz Castillo ibc@aliax.net
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On May 28, 2009, at 4:09 PM, Alex Balashov abalashov@evaristesys.com wrote:
Sounds like a grammatical/syntactical check only, not semantic. For the latter, some sort of fairly sophisticated compilation of runtime environment would be needed. Probably not worth the development effort, just to have a 'lint' almost nobody uses.
-- Sent from mobile device
On May 28, 2009, at 3:23 PM, Iñaki Baz Castillo ibc@aliax.net wrot e:
Hi, I wonder how useful are -c and -C options (theorically they check the config file).
While they detect some obvious errors, they fail to detect errors like:
xlog("L_HI_ALL", "What is it?\n");
modparam("wrong_module_name","wrong_param","wrong_value").
So, how much could I trust this utility?
Thanks.
-- Iñaki Baz Castillo ibc@aliax.net
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Alex Balashov wrote:
Sounds like a grammatical/syntactical check only, not semantic. For the latter, some sort of fairly sophisticated compilation of runtime environment would be needed. Probably not worth the development effort, just to have a 'lint' almost nobody uses.
It is quite annoying that you have to restart the server to find out if your config really works. If you can sure that after a -c the config is okay and sr will start is quite valuable.
I suppose what should be done is running all the fixups for all the function parameters in -c mode, too.
Regards, Martin