More WTP work...

FossilOrigin-Name: afda76caa13c6b6daf59e1482844be8c1a0b6aa26760175f105c1b1aecbbb448
This commit is contained in:
7u83@mail.ru
2015-04-18 10:02:58 +00:00
parent 5a80bdecea
commit 5a71654ebd
11 changed files with 33 additions and 5 deletions

View File

@ -50,6 +50,8 @@ uint32_t cw_dbg_opt_level = 0;
#define DBG_CLR_YELLO "\x1b[33m"
#define DBG_CLR_YELLO_I "\x1b[3;33m"
#define DBG_CLR_CYAN "\x1b[36m"
static struct cw_str color_on[] = {
{ DBG_PKT_IN, DBG_CLR_YELLO },
@ -67,6 +69,7 @@ static struct cw_str color_on[] = {
{ DBG_RFC, "\x1b[31m" },
{ DBG_X, "\x1b[31m" },
{ DBG_WARN, DBG_CLR_CYAN },
{ CW_STR_STOP, "" }
};
static struct cw_str color_ontext[] = {
@ -95,7 +98,9 @@ static struct cw_str prefix[] = {
{ DBG_RFC, " RFC Violation -" },
{ DBG_SUBELEM," Sub-Element - "},
{ DBG_DTLS, " DTLS - "},
{ DBG_WARN, " Warning - "},
{ DBG_X, "XXXXX - "},
{ CW_STR_STOP, "" }
};