Renamed cw_str to cw_strlist_elem.

FossilOrigin-Name: eb87e178a02fd3daebd4d168489a4e5c99be67602caa8ea50d5b6702a4d13005
This commit is contained in:
7u83@mail.ru
2015-10-18 07:49:14 +00:00
parent 2704f537e4
commit 0b39c92a79
20 changed files with 50 additions and 41 deletions

View File

@ -71,7 +71,7 @@ uint32_t cw_dbg_opt_level = 0;
#define DBG_CLR_CYAN "\x1b[36m"
static struct cw_str color_on[] = {
static struct cw_strlist_elem color_on[] = {
{ DBG_PKT_IN, DBG_CLR_YELLO },
{ DBG_PKT_OUT, DBG_CLR_YELLO_I },
@ -90,19 +90,19 @@ static struct cw_str color_on[] = {
{ DBG_WARN, DBG_CLR_CYAN },
{ CW_STR_STOP, "" }
};
static struct cw_str color_ontext[] = {
static struct cw_strlist_elem color_ontext[] = {
{ DBG_ELEM_DMP, "\x1b[30m"},
{ CW_STR_STOP, "" }
};
static struct cw_str color_off[] = {
static struct cw_strlist_elem color_off[] = {
{ CW_STR_STOP, "\x1b[22;39m\x1b[23m" }
};
static struct cw_str prefix[] = {
static struct cw_strlist_elem prefix[] = {
{ DBG_INFO, " Info -" },
{ DBG_PKT_IN, " Pkt IN -" },
{ DBG_PKT_OUT, " Pkt Out -" },