Better debug output

FossilOrigin-Name: 68380f69f4b36e6c759d98eaf3285c3c0f3ecde3be4492310778584f5608a44c
This commit is contained in:
7u83@mail.ru 2015-01-04 23:33:45 +00:00
parent 1c2e5d3061
commit 468d2f05a9
1 changed files with 7 additions and 2 deletions

View File

@ -31,8 +31,12 @@
static int process_elem(void *w,int type,uint8_t* msgelem,int len)
{
struct wtpinfo * wtpinfo = (struct wtpinfo*)w;
cw_dbg(DBG_CW_MSGELEM,"Process join req msgelem, type=%d (%s), len=%d",type,cw_msgelemtostr(type),len);
cw_dbg_dmp(DBG_CW_MSGELEM_DMP,msgelem,len,"Dump for msgelem ...");
cw_dbg_msgelem(CWMSG_JOIN_REQUEST, type, msgelem, len);
// cw_dbg(DBG_CW_MSGELEM,"Process join req msgelem, type=%d (%s), len=%d",type,cw_msgelemtostr(type),len);
// cw_dbg_dmp(DBG_CW_MSGELEM_DMP,msgelem,len,"Dump for msgelem ...");
if (wtpinfo_readelem_location_data(wtpinfo,type,msgelem,len))
@ -65,6 +69,7 @@ static int process_elem(void *w,int type,uint8_t* msgelem,int len)
if (wtpinfo_readelem_cw_local_ip_addr(wtpinfo,type,msgelem,len))
return 1;
return 0;
}