renamed capwap directory to cw.
FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
This commit is contained in:
108
src/cw/dbg_strings.c
Normal file
108
src/cw/dbg_strings.c
Normal file
@ -0,0 +1,108 @@
|
||||
/*
|
||||
This file is part of libcapwap.
|
||||
|
||||
libcapwap is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
libcapwap is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
*@file
|
||||
*@brief
|
||||
*/
|
||||
|
||||
//#include <string.h>
|
||||
|
||||
#include "dbg.h"
|
||||
|
||||
/**
|
||||
*@addtogroup DbgOptions
|
||||
*@{
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Debug strings
|
||||
*/
|
||||
struct cw_strlist_elem cw_dbg_strings[] = {
|
||||
{ DBG_INFO, "info" },
|
||||
{ DBG_PKT_IN, "pkt_in" },
|
||||
{ DBG_PKT_OUT, "pkt_out" },
|
||||
{ DBG_PKT_ERR, "pkt_err" },
|
||||
{ DBG_PKT_DMP, "pkt_dmp" },
|
||||
{ DBG_RFC, "rfc" },
|
||||
{ DBG_SUBELEM, "subelem" },
|
||||
{ DBG_SUBELEM_DMP, "subelem_dmp" },
|
||||
{ DBG_MSG_IN, "msg_in" },
|
||||
{ DBG_MSG_OUT, "msg_out"},
|
||||
{ DBG_MSG_ERR, "msg_err" },
|
||||
{ DBG_ELEM, "elem" },
|
||||
{ DBG_ELEM_DMP, "elem_dmp" },
|
||||
{ DBG_ELEM_ERR, "elem_err" },
|
||||
{ DBG_DTLS, "dtls" },
|
||||
{ DBG_DTLS_BIO, "dtls_bio" },
|
||||
{ DBG_WARN, "warn" },
|
||||
|
||||
{ DBG_X,"dbgx" },
|
||||
{ CW_STR_STOP, NULL }
|
||||
};
|
||||
|
||||
/**
|
||||
*@}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
struct cw_dbg_cfgstrs cw_dbg_cfgstrs[] = {
|
||||
|
||||
{"info",DBG_CW_INFO},
|
||||
{"msg",DBG_MSG},
|
||||
{"elem",DBG_ELEM},
|
||||
{"elem_dmp",DBG_ELEM_DMP},
|
||||
{"rfc",DBG_CW_RFC},
|
||||
{"pkt_in",DBG_CW_PKT_IN},
|
||||
{"pkt_out",DBG_CW_PKT_OUT},
|
||||
{"pkt_dtl",DBG_CW_PKT_DTL},
|
||||
{"pkt",(DBG_CW_PKT_IN | DBG_CW_PKT_OUT)},
|
||||
{"pkt_dmp",DBG_CW_PKT_DMP},
|
||||
{"pkt_err",DBG_CW_PKT_ERR},
|
||||
{"msg_err",DBG_MSG_ERR},
|
||||
{"img_dtl",DBG_CW_IMG_DTL},
|
||||
{"elem_err",DBG_ELEM_ERR},
|
||||
|
||||
{"dtls",DBG_DTLS},
|
||||
{"dtls_dietail",DBG_DTLS_DETAIL},
|
||||
{"dtls_bio",DBG_DTLS_BIO},
|
||||
{"dtls_bio_dmp",DBG_DTLS_BIO_DMP},
|
||||
|
||||
|
||||
{"all",DBG_ALL},
|
||||
{"err",DBG_ERR},
|
||||
{0,0}
|
||||
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
int cw_log_str2dbglevel(const char * str)
|
||||
{
|
||||
int i;
|
||||
for (i=0; cw_dbg_cfgstrs[i].name; i++) {
|
||||
if (!strcmp(str,cw_dbg_cfgstrs[i].name))
|
||||
return cw_dbg_cfgstrs[i].level;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user