forked from lei.chen/myxce
tlog
This commit is contained in:
parent
cccea1141d
commit
2836d196da
12 changed files with 144 additions and 25 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <tlog.h>
|
||||
|
||||
#include "controller.capnp.h"
|
||||
#include "xce/errnox.h"
|
||||
|
|
@ -57,6 +58,14 @@
|
|||
(code)); \
|
||||
} while (0)
|
||||
|
||||
#define TRACE(...) tlog_debug3(__VA_ARGS__)
|
||||
|
||||
#define INFO(...) tlog_info(__VA_ARGS__)
|
||||
|
||||
#define ERROR(...) tlog_error(__VA_ARGS__)
|
||||
|
||||
#define WARN(...) tlog_warn(__VA_ARGS__)
|
||||
|
||||
#define PERROR(s) xce_perror(s)
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -66,9 +75,6 @@ typedef struct {
|
|||
int code;
|
||||
} ectx_t;
|
||||
|
||||
#define TRACE(...)
|
||||
#define WARN(...)
|
||||
|
||||
extern capn_text chars_to_text(const char*);
|
||||
extern int parse_argv(char*, char***);
|
||||
extern void free_argv(char**, int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue