📄 mmsamisc.c
字号:
ST_ULONG lval;#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_log_file_size: entered.");#endif /* Found 'LogFileSize' keyword, get the value */ if (cfg_get_ulong (&lval) == SD_SUCCESS) { sLogCtrl->fc.maxSize = lval; /* Size of the circular log file */ } else cfg_set_config_err (); }/************************************************************************//* cfg_mlog_lm_memerr_log *//************************************************************************/ST_VOID cfg_mlog_lm_memerr_log (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_lm_memerr_log: entered.");#endif chk_debug_en |= MEM_LOG_ERR; }/************************************************************************//* cfg_mlog_lm_calloc_log *//************************************************************************/ST_VOID cfg_mlog_lm_calloc_log (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_lm_calloc_log: entered.");#endif chk_debug_en |= MEM_LOG_CALLOC; }/************************************************************************//* cfg_mlog_lm_malloc_log *//************************************************************************/ST_VOID cfg_mlog_lm_malloc_log (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_lm_malloc_log: entered.");#endif chk_debug_en |= MEM_LOG_MALLOC; }/************************************************************************//* cfg_mlog_lm_realloc_log *//************************************************************************/ST_VOID cfg_mlog_lm_realloc_log (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_lm_realloc_log: entered.");#endif chk_debug_en |= MEM_LOG_REALLOC; }/************************************************************************//* cfg_mlog_lm_free_log *//************************************************************************/ST_VOID cfg_mlog_lm_free_log (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_lm_free_log: entered.");#endif chk_debug_en |= MEM_LOG_FREE; }/************************************************************************//* cfg_mic_m_mem_debug *//************************************************************************/ST_VOID cfg_mic_m_mem_debug (ST_VOID) { ST_INT val;#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_mem_debug: entered.");#endif if (cfg_get_int (&val) == SD_SUCCESS) { m_mem_debug = (ST_BOOLEAN)val; } else { cfg_set_config_err (); } }/************************************************************************//* cfg_mic_m_fill_en *//************************************************************************/ST_VOID cfg_mic_m_fill_en (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_fill_en: entered.");#endif m_fill_en = SD_TRUE; } /************************************************************************//* cfg_mic_m_heap_check_enable *//************************************************************************/ST_VOID cfg_mic_m_heap_check_enable (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_heap_check_enable: entered.");#endif m_heap_check_enable = SD_TRUE; }/************************************************************************//* cfg_mic_m_check_list_enable *//************************************************************************/ST_VOID cfg_mic_m_check_list_enable (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_check_list_enable: entered.");#endif m_check_list_enable = SD_TRUE; }/************************************************************************//* cfg_mic_m_find_node_enable *//************************************************************************/ST_VOID cfg_mic_m_find_node_enable (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_find_node_enable: entered.");#endif m_find_node_enable = SD_TRUE; }/************************************************************************//* cfg_mic_m_track_prev_free *//************************************************************************/ST_VOID cfg_mic_m_track_prev_free (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_track_prev_free: entered.");#endif m_track_prev_free = SD_TRUE; }/************************************************************************//* cfg_mic_list_debug_sel *//************************************************************************/ST_VOID cfg_mic_list_debug_sel (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_list_debug_sel: entered.");#endif list_debug_sel = SD_TRUE; }/************************************************************************//* cfg_mic_m_no_realloc_smaller *//************************************************************************/ST_VOID cfg_mic_m_no_realloc_smaller (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mic_m_no_realloc_smaller: entered.");#endif m_no_realloc_smaller = SD_TRUE; }/************************************************************************//* cfg_mlog_asn1_log_dec *//************************************************************************/ST_VOID cfg_mlog_asn1_log_dec (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_asn1_log_dec: entered.");#endif asn1_debug_sel |= ASN1_LOG_DEC; }/************************************************************************//* cfg_mlog_asn1_log_enc *//************************************************************************/ST_VOID cfg_mlog_asn1_log_enc (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_asn1_log_enc: entered.");#endif asn1_debug_sel |= ASN1_LOG_ENC; }/************************************************************************//* cfg_mlog_asn1_log_err *//************************************************************************/ST_VOID cfg_mlog_asn1_log_err (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_asn1_log_err: entered.");#endif asn1_debug_sel |= ASN1_LOG_ERR; }/************************************************************************//* cfg_mlog_asn1_log_nerr *//************************************************************************/ST_VOID cfg_mlog_asn1_log_nerr (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_asn1_log_nerr: entered.");#endif asn1_debug_sel |= ASN1_LOG_NERR; }/************************************************************************//* cfg_mlog_mms_log_dec *//************************************************************************/ST_VOID cfg_mlog_mms_log_dec (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_dec: entered.");#endif mms_debug_sel |= MMS_LOG_DEC; }/************************************************************************//* cfg_mlog_mms_log_enc *//************************************************************************/ST_VOID cfg_mlog_mms_log_enc (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_enc: entered.");#endif mms_debug_sel |= MMS_LOG_ENC; }/************************************************************************//* cfg_mlog_mms_log_acse *//************************************************************************/ST_VOID cfg_mlog_mms_log_acse (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_acse: entered.");#endif mms_debug_sel |= MMS_LOG_ACSE; }/************************************************************************//* cfg_mlog_mms_log_llc *//************************************************************************/ST_VOID cfg_mlog_mms_log_llc (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_llc: entered.");#endif mms_debug_sel |= MMS_LOG_LLC; }/************************************************************************//* cfg_mlog_mms_log_ique *//************************************************************************/ST_VOID cfg_mlog_mms_log_ique (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_ique: entered.");#endif mms_debug_sel |= MMS_LOG_IQUE; m_que_validate = SD_TRUE; }/************************************************************************//* cfg_mlog_mms_log_rque *//************************************************************************/ST_VOID cfg_mlog_mms_log_rque (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_rque: entered.");#endif mms_debug_sel |= MMS_LOG_RQUE; m_que_validate = SD_TRUE; }/************************************************************************//* cfg_mlog_mms_log_ind *//************************************************************************/ST_VOID cfg_mlog_mms_log_ind (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_ind: entered.");#endif mms_debug_sel |= MMS_LOG_IND; }/************************************************************************//* cfg_mlog_mms_log_conf *//************************************************************************/ST_VOID cfg_mlog_mms_log_conf (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_conf: entered.");#endif mms_debug_sel |= MMS_LOG_CONF; }/************************************************************************//* cfg_mlog_mms_log_req *//************************************************************************/ST_VOID cfg_mlog_mms_log_req (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_req: entered.");#endif mms_debug_sel |= MMS_LOG_REQ; }/************************************************************************//* cfg_mlog_mms_log_resp *//************************************************************************/ST_VOID cfg_mlog_mms_log_resp (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_resp: entered.");#endif mms_debug_sel |= MMS_LOG_RESP; }/************************************************************************//* cfg_mlog_mms_log_vm *//************************************************************************/ST_VOID cfg_mlog_mms_log_vm (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_vm: entered.");#endif mms_debug_sel |= MMS_LOG_VM; }/************************************************************************//* cfg_mlog_mms_log_data *//************************************************************************/ST_VOID cfg_mlog_mms_log_data (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_data: entered.");#endif mms_debug_sel |= MMS_LOG_DATA; }/************************************************************************//* cfg_mlog_mms_log_err *//************************************************************************/ST_VOID cfg_mlog_mms_log_err (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_err: entered.");#endif mms_debug_sel |= MMS_LOG_ERR; }/************************************************************************//* cfg_mlog_mms_log_nerr *//************************************************************************/ST_VOID cfg_mlog_mms_log_nerr (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_nerr: entered.");#endif mms_debug_sel |= MMS_LOG_NERR; }/************************************************************************//* cfg_mlog_mms_log_pdu *//************************************************************************/ST_VOID cfg_mlog_mms_log_pdu (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_pdu: entered.");#endif mms_debug_sel |= MMS_LOG_PDU; }/************************************************************************//* cfg_mlog_mms_log_config *//************************************************************************/ST_VOID cfg_mlog_mms_log_config (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_config: entered.");#endif mms_debug_sel |= MMS_LOG_CONFIG; }/************************************************************************//* cfg_mlog_mms_log_rt *//************************************************************************/ST_VOID cfg_mlog_mms_log_rt (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_rt: entered.");#endif mms_debug_sel |= MMS_LOG_RT; }/************************************************************************//* cfg_mlog_mms_log_rtaa *//************************************************************************/ST_VOID cfg_mlog_mms_log_rtaa (ST_VOID) {#ifdef S_TABLE_DEBUG printf ("\ncfg_mlog_mms_log_rtaa: entered.");#endif mms_debug_sel |= MMS_LOG_RTAA; }/************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -