Work on mods..

FossilOrigin-Name: 4c4034e76e9a8525d1f1bb528eacbe7510339a83032d22c3da9c362923f37455
This commit is contained in:
7u83@mail.ru
2016-03-01 18:10:08 +00:00
parent 31ab5e0989
commit f84cbc22af
5 changed files with 61 additions and 18 deletions

View File

@ -43,9 +43,15 @@ static struct uci_section * get_anon_section(struct uci_package * pkg, const ch
static void set_dbg_opt(struct uci_context *ctx,struct uci_section * section,int opt,const char * optstr)
{
printf("Setting debug opt: %s %d - ",optstr, opt);
const char *str = uci_lookup_option_string(ctx,section,optstr);
if (!str)
if (!str){
printf("no\n");
return;
}
printf("%s\n",str);
if ((strcmp(str,"1")==0) || (strcmp(str,"true")==0))
//conf_dbg_level |= opt;
cw_dbg_set_level(opt,1);

View File

@ -39,9 +39,21 @@ config 'wtp'
config 'dbg'
# debug options
option info 0
option dtls 0
option dtls_detail 0
option dtls_bio 0
option dtls_bio_dmp 0
option pkt_in 0
option pkt_out 0
option pkt_err 0
option msg_in 0
option msg_out 0
option msg_err 0
option elem 0
option elem_err 0
option rfc 0