Changed to new dbg functions...

FossilOrigin-Name: 4427570cba22b35a7ce5f4c869ca82793b68191f0431e6330b03f3c5a167e328
This commit is contained in:
7u83@mail.ru 2014-08-14 23:32:48 +00:00
parent d46bdb89e3
commit 6ca14725a7
1 changed files with 3 additions and 3 deletions

View File

@ -22,11 +22,11 @@ static void wtpinfo_readsubelems_wtp_board_data(struct wtpinfo * wtpinfo,uint8_t
int sublen = val&0xffff;
i+=4;
if (sublen+i>len){
cw_log_debug1("WTP Board data sub-element too long, type=%d,len=%d",subtype,sublen);
cw_dbg(DBG_CW_MSGELEM,"WTP Board data sub-element too long, type=%d,len=%d",subtype,sublen);
return;
}
cw_log_debug2("Reading WTP board data sub-element, type=%d, len=%d",subtype,sublen);
cw_dbg(DBG_CW_MSGELEM,"Reading WTP board data sub-element, type=%d, len=%d",subtype,sublen);
switch(subtype){
case CWBOARDDATA_MODELNO:
@ -61,7 +61,7 @@ int wtpinfo_readelem_wtp_board_data(struct wtpinfo *wtpinfo, int type, uint8_t *
if (type!=CWMSGELEM_WTP_BOARD_DATA)
return 0;
if (len<4){
cw_log_debug0("Discarding WTP_BOARD_DATA msgelem, wrong size, type=%d, len=%d\n",type,len);
cw_dbg(DBG_CW_MSGELEM,"Discarding WTP_BOARD_DATA msgelem, wrong size, type=%d, len=%d\n",type,len);
return 1;
}