Refactoring ...
FossilOrigin-Name: 29a45fd6c217dc9d1d0f050cfc636be7ae4b6473631bb0ab14493e0395f0e3a9
This commit is contained in:
20
src/cw/dbg.h
20
src/cw/dbg.h
@ -45,11 +45,11 @@ void cw_dbg_elem_(struct conn * conn, int msg, int msgelem, const uint8_t * msgb
|
||||
void cw_dbg_missing_mand(int level,struct conn *conn,cw_action_in_t ** ml,int n,cw_action_in_t *a);
|
||||
void cw_dbg_packet(struct conn *conn, uint8_t * packet, int len);
|
||||
|
||||
|
||||
/*
|
||||
#define DBGX(f,...) cw_dbg(DBG_X,f,__VA_ARGS__) //cw_dbg(DBG_X, f ,__VA_ARGS__)
|
||||
//#define DBGX(f,...) cw_dbg(DBG_X, f)
|
||||
//#define DBGX(f,...) printf("hallo\n")
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@ -95,19 +95,15 @@ extern uint32_t cw_dbg_opt_level;
|
||||
extern struct cw_strlist_elem cw_dbg_strings[];
|
||||
|
||||
|
||||
#define cw_dbg cw_dbg_colored
|
||||
|
||||
|
||||
#define cw_dbg(type,...)\
|
||||
if (cw_dbg_is_level(type)) cw_dbg_colored(type,__FILE__,__LINE__,__VA_ARGS__)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
#define cw_dbg_dmp(type,...) cw_dbg_dmp_(type,__FILE__,__LINE__,__VA_ARGS__)
|
||||
*/
|
||||
#define cw_dbg_dmp cw_dbg_dmp_
|
||||
|
||||
|
||||
void cw_dbg_colored(int level, const char *file, int line, const char *format, ...);
|
||||
void cw_dbg_dmp_(int level, const char *file, int line,
|
||||
const uint8_t * data, int len, const char *format, ...);
|
||||
void cw_dbg_colored(int level, const char *format, ...);
|
||||
void cw_dbg_dmp_(int level, const uint8_t * data, int len, const char *format, ...);
|
||||
|
||||
|
||||
extern void cw_dbg_elem_colored(int level, struct conn *conn, int msg, int msgelem,
|
||||
|
Reference in New Issue
Block a user