mmslog.h
来自「ICCP Toolkit 是在 Tru64下开发Tase.2通信协议的开发包」· C头文件 代码 · 共 667 行 · 第 1/2 页
H
667 行
if (mms_debug_sel & MMS_LOG_PDU)\ _slog (sLogCtrl,_mms_log_pdu_logstr,\ thisFileName,__LINE__,a,b,c,d,e);\ }#define MLOG_PDUH(a,b) {\ if (mms_debug_sel & MMS_LOG_PDU)\ _slogHex (sLogCtrl,a,b);\ }/*********************** ALWAYS Macros *********************************/ #define MLOG_ALWAYS0(a) {\ _slog (sLogCtrl,_mms_log_always_logstr,\ thisFileName,__LINE__,a);\ }#define MLOG_ALWAYS1(a,b) {\ _slog (sLogCtrl,_mms_log_always_logstr,\ thisFileName,__LINE__,a,b);\ }#define MLOG_ALWAYS2(a,b,c) {\ _slog (sLogCtrl,_mms_log_always_logstr,\ thisFileName,__LINE__,a,b,c);\ }#define MLOG_ALWAYS3(a,b,c,d) {\ _slog (sLogCtrl,_mms_log_always_logstr,\ thisFileName,__LINE__,a,b,c,d);\ }#define MLOG_CALWAYS0(a) {\ _slogc (sLogCtrl,a);\ }#define MLOG_CALWAYS1(a,b) {\ _slogc (sLogCtrl,a,b);\ }#define MLOG_CALWAYS2(a,b,c) {\ _slogc (sLogCtrl,a,b,c);\ }#define MLOG_CALWAYS3(a,b,c,d) {\ _slogc (sLogCtrl,a,b,c,d);\ }#define MLOG_CALWAYS4(a,b,c,d,e) {\ _slogc (sLogCtrl,a,b,c,d,e);\ }#define MLOG_CALWAYS5(a,b,c,d,e,f) {\ _slogc (sLogCtrl,a,b,c,d,e,f);\ }#define MLOG_ALWAYSH(a,b) {\ _slogHex (sLogCtrl,a,b);\ }/*********************** USER ERR Macros********************************/#define USER_LOG_ERR0(a) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a);\ }#define USER_LOG_ERR1(a,b) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b);\ }#define USER_LOG_ERR2(a,b,c) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c);\ }#define USER_LOG_ERR3(a,b,c,d) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c,d);\ }#define USER_LOG_ERR4(a,b,c,d,e) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c,d,e);\ }#define USER_LOG_ERR5(a,b,c,d,e,f) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f);\ }#define USER_LOG_ERR6(a,b,c,d,e,f,g) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g);\ }#define USER_LOG_ERR7(a,b,c,d,e,f,g,h) {\ if (user_debug_sel & USER_LOG_ERR)\ _slog (sLogCtrl,_user_err_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g,h);\ }/*********************** USER Client Macros ****************************/#define USER_LOG_CLIENT0(a) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a);\ }#define USER_LOG_CLIENT1(a,b) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b);\ }#define USER_LOG_CLIENT2(a,b,c) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c);\ }#define USER_LOG_CLIENT3(a,b,c,d) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c,d);\ }#define USER_LOG_CLIENT4(a,b,c,d,e) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c,d,e);\ }#define USER_LOG_CLIENT5(a,b,c,d,e,f) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f);\ }#define USER_LOG_CLIENT6(a,b,c,d,e,f,g) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g);\ }#define USER_LOG_CLIENT7(a,b,c,d,e,f,g,h) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slog (sLogCtrl,_user_client_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g,h);\ }#define USER_LOG_CLIENT_HEX(a,b) {\ if (user_debug_sel & USER_LOG_CLIENT)\ _slogHex (sLogCtrl,a,b);\ } /*********************** USER Server Macros ****************************/#define USER_LOG_SERVER0(a) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a);\ }#define USER_LOG_SERVER1(a,b) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b);\ }#define USER_LOG_SERVER2(a,b,c) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c);\ }#define USER_LOG_SERVER3(a,b,c,d) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c,d);\ }#define USER_LOG_SERVER4(a,b,c,d,e) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c,d,e);\ }#define USER_LOG_SERVER5(a,b,c,d,e,f) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f);\ }#define USER_LOG_SERVER6(a,b,c,d,e,f,g) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g);\ }#define USER_LOG_SERVER7(a,b,c,d,e,f,g,h) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slog (sLogCtrl,_user_server_logstr,\ thisFileName,__LINE__,a,b,c,d,e,f,g,h);\ }#define USER_LOG_SERVER_HEX(a,b) {\ if (user_debug_sel & USER_LOG_SERVER)\ _slogHex (sLogCtrl,a,b);\ } /************************************************************************/#else/************************************************************************/#define MLOG_PAUSEDEC(msg)#define MLOG_PAUSEIQUE(msg)#define MLOG_PAUSERQUE(msg)#define MLOG_PAUSEPDU(msg)#define MLOG_DEC0(a)#define MLOG_DEC1(a,b)#define MLOG_DEC2(a,b,c)#define MLOG_CDEC0(a)#define MLOG_CDEC1(a,b)#define MLOG_CDEC2(a,b,c)#define MLOG_ENC0(a)#define MLOG_ENC1(a,b)#define MLOG_ENC2(a,b,c)#define MLOG_CENC1(a,b)#define MLOG_ENCH(a,b)#define MLOG_PAUSEENC(msg)#define MLOG_ACSE0(a)#define MLOG_ACSE1(a,b)#define MLOG_ACSE2(a,b,c)#define MLOG_CACSE0(a)#define MLOG_CACSE1(a,b)#define MLOG_CACSE2(a,b,c)#define MLOG_CACSE3(a,b,c,d)#define MLOG_ACSEH(a,b)#define MLOG_LLC0(a)#define MLOG_LLC1(a,b)#define MLOG_LLC2(a,b,c)#define MLOG_LLC3(a,b,c,d)#define MLOG_LLCH(a,b)#define MLOG_CLLC0(a);#define MLOG_CLLC1(a,b);#define MLOG_CLLC2(a,b,c);#define MLOG_CLLC3(a,b,c,d);#define MLOG_IQUE0(a)#define MLOG_CIQUE0(a)#define MLOG_CIQUE1(a,b)#define MLOG_CIQUE4(a,b,c,d,e)#define MLOG_RQUE0(a)#define MLOG_CRQUE0(a)#define MLOG_CRQUE1(a,b)#define MLOG_CRQUE4(a,b,c,d,e)#define MLOG_IND0(a)#define MLOG_INDH(a,b)#define MLOG_CONF0(a)#define MLOG_CONFH(a,b)#define MLOG_REQ0(a)#define MLOG_REQH(a,b)#define MLOG_RESP0(a)#define MLOG_RESPH(a,b)#define MLOG_VM0(a)#define MLOG_ERR0(a)#define MLOG_ERR1(a,b)#define MLOG_ERR2(a,b,c)#define MLOG_ERR3(a,b,c,d)#define MLOG_ERR4(a,b,c,d,e)#define MLOG_NERR0(a)#define MLOG_NERR1(a,b)#define MLOG_NERR2(a,b,c)#define MLOG_CNERR3(a,b,c,d)#define MLOG_PDU4(a,b,c,d,e)#define MLOG_PDUH(a,b)#define MLOG_ALWAYS0(a)#define MLOG_ALWAYS1(a,b)#define MLOG_ALWAYS2(a,b,c)#define MLOG_CALWAYS0(a)#define MLOG_CALWAYS1(a,b)#define MLOG_CALWAYS2(a,b,c)#define MLOG_CALWAYS3(a,b,c,d)#define MLOG_CALWAYS4(a,b,c,d,e)#define MLOG_CALWAYS5(a,b,c,d,e,f)#define MLOG_ALWAYSH(a,b)#define USER_LOG_ERR0(a)#define USER_LOG_ERR1(a,b)#define USER_LOG_ERR2(a,b,c)#define USER_LOG_ERR3(a,b,c,d)#define USER_LOG_ERR4(a,b,c,d,e)#define USER_LOG_ERR5(a,b,c,d,e,f)#define USER_LOG_ERR6(a,b,c,d,e,f,g)#define USER_LOG_ERR7(a,b,c,d,e,f,g,h)#define USER_LOG_CLIENT0(a)#define USER_LOG_CLIENT1(a,b)#define USER_LOG_CLIENT2(a,b,c)#define USER_LOG_CLIENT3(a,b,c,d)#define USER_LOG_CLIENT4(a,b,c,d,e)#define USER_LOG_CLIENT5(a,b,c,d,e,f)#define USER_LOG_CLIENT6(a,b,c,d,e,f,g)#define USER_LOG_CLIENT7(a,b,c,d,e,f,g,h)#define USER_LOG_CLIENT_HEX(a,b) #define USER_LOG_SERVER0(a)#define USER_LOG_SERVER1(a,b)#define USER_LOG_SERVER2(a,b,c)#define USER_LOG_SERVER3(a,b,c,d)#define USER_LOG_SERVER4(a,b,c,d,e)#define USER_LOG_SERVER5(a,b,c,d,e,f)#define USER_LOG_SERVER6(a,b,c,d,e,f,g)#define USER_LOG_SERVER7(a,b,c,d,e,f,g,h)#define USER_LOG_SERVER_HEX(a,b) /************************************************************************/#endif /* End of DEBUG_SISCO *//************************************************************************/#ifdef __cplusplus}#endif/************************************************************************/#endif /* End of MMS_LOG_INCLUDED *//************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?