Seting dbg level correct.

FossilOrigin-Name: 49d21b5de961f0b868a4e3430ed1f28f7e4aeb5f63bebd17b458c1f211294265
This commit is contained in:
7u83@mail.ru 2014-08-23 21:16:19 +00:00
parent 72b7dbf3aa
commit 021fbb8b94
1 changed files with 8 additions and 8 deletions

View File

@ -531,36 +531,36 @@ static int conf_read_dbg_level(cfg_t *cfg)
for (i=0; i<n; i++) { for (i=0; i<n; i++) {
char * str = cfg_getnstr(cfg,name,i); char * str = cfg_getnstr(cfg,name,i);
if (!strcmp(str,"msg")){ if (!strcmp(str,"msg")){
cw_dbg_opt_level=DBG_CW_MSG; cw_dbg_opt_level|=DBG_CW_MSG;
continue; continue;
} }
if (!strcmp(str,"msgelem")){ if (!strcmp(str,"msgelem")){
cw_dbg_opt_level=DBG_CW_MSGELEM; cw_dbg_opt_level|=DBG_CW_MSGELEM;
continue; continue;
} }
if (!strcmp(str,"msgelem_dmp")){ if (!strcmp(str,"msgelem_dmp")){
cw_dbg_opt_level=DBG_CW_MSGELEM_DMP; cw_dbg_opt_level|=DBG_CW_MSGELEM_DMP;
continue; continue;
} }
if (!strcmp(str,"rfc")){ if (!strcmp(str,"rfc")){
cw_dbg_opt_level=DBG_CW_RFC; cw_dbg_opt_level|=DBG_CW_RFC;
continue; continue;
} }
if (!strcmp(str,"pkt")){ if (!strcmp(str,"pkt")){
cw_dbg_opt_level=DBG_CW_PKT; cw_dbg_opt_level|=DBG_CW_PKT;
continue; continue;
} }
if (!strcmp(str,"pkt_dmp")){ if (!strcmp(str,"pkt_dmp")){
cw_dbg_opt_level=DBG_CW_PKT_DMP; cw_dbg_opt_level|=DBG_CW_PKT_DMP;
continue; continue;
} }
if (!strcmp(str,"pkt_err")){ if (!strcmp(str,"pkt_err")){
cw_dbg_opt_level=DBG_CW_PKT_ERR; cw_dbg_opt_level|=DBG_CW_PKT_ERR;
continue; continue;
} }
if (!strcmp(str,"msg_err")){ if (!strcmp(str,"msg_err")){
cw_dbg_opt_level=DBG_CW_MSG_ERR; cw_dbg_opt_level|=DBG_CW_MSG_ERR;
continue; continue;
} }