|
Defines |
#define | MSG_K_SEVERITY (2) |
#define | MSG_K_MESSAGE (21) |
#define | MSG_K_FACILITY (8) |
#define | MSG_K_REPORT (1) |
#define | MSG_V_SEVERITY ( 0 ) |
#define | MSG_V_MESSAGE ( MSG_K_SEVERITY ) |
#define | MSG_V_FACILITY ( MSG_V_MESSAGE + MSG_K_MESSAGE ) |
#define | MSG_V_REPORT ( MSG_V_FACILITY + MSG_K_FACILITY ) |
#define | MSG_M_SEVERITY (((1 << MSG_K_SEVERITY ) - 1) ) |
#define | MSG_M_MESSAGE (((1 << MSG_K_MESSAGE ) - 1) << MSG_V_MESSAGE ) |
#define | MSG_M_FACILITY (((1 << MSG_K_FACILITY ) - 1) << MSG_V_FACILITY ) |
#define | MSG_M_REPORT (((1 << MSG_K_REPORT ) - 1) << MSG_V_REPORT ) |
#define | MSG_M_MATCH (MSG_M_FACILITY | MSG_M_MESSAGE) |
#define | _msg_success(x) (((x) & 1) == 0) |
#define | _msg_failure(x) (((x) & 1) != 0) |
#define | _msg_match(x, y) (((x) & MSG_M_MATCH) == ((y) & MSG_M_MATCH)) |
#define | _msg_strip(x) ((x) & ~MSG_M_REPORT) |
#define | _msg_report(code, time,nprm,args...) MSG_report( code, time, __func__, nprm , ## args ) |