⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iccp_log.c

📁 ICCP Toolkit 是在 Tru64下开发Tase.2通信协议的开发包
💻 C
📖 第 1 页 / 共 3 页
字号:
  M_SET_FILE_CTRL( FIL_CTRL_HARD_FLUSH );  /* Hard flush is requested  */  }/************************************************************************//*                         cfg_mlog_lc_no_append                       	*//************************************************************************/ST_VOID cfg_mlog_lc_no_append (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_lc_no_append: entered." );#endif  /* Found 'NoAppend' flag                                              */  M_SET_FILE_CTRL( FIL_CTRL_NO_APPEND );  /* overwrite is requested    */  }/************************************************************************//*                         cfg_mlog_lc_no_msg_header                   	*//************************************************************************/ST_VOID cfg_mlog_lc_no_msg_header (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_lc_no_msg_header: entered." );#endif  /* Found 'NoMsgheader' flag                                           */  M_CLR_FILE_CTRL( FIL_CTRL_MSG_HDR_EN );   M_CLR_MEM_CTRL( MEM_CTRL_MSG_HDR_EN );   }/************************************************************************//*                         cfg_mlog_lc_no_wipe                         	*//************************************************************************/ST_VOID cfg_mlog_lc_no_wipe (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_lc_no_wipe: entered." );#endif  /* Found 'NoWipe' flag                                                */  M_CLR_FILE_CTRL( FIL_CTRL_WIPE_EN );  }/************************************************************************//*                         cfg_mlog_lc_no_wrap                         	*//************************************************************************/ST_VOID cfg_mlog_lc_no_wrap (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_lc_no_wrap: entered." );#endif  /* Found 'NoWrap' flag                                                */  M_CLR_FILE_CTRL( FIL_CTRL_WRAP_EN );  }/************************************************************************//*                         cfg_mlog_lc_setbuf                          	*//************************************************************************/ST_VOID cfg_mlog_lc_setbuf (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_lc_setbuf: entered." );#endif  /* Found 'Setbuf' flag                                                */  M_SET_FILE_CTRL( FIL_CTRL_SETBUF_EN );  /* Setbuf is requested       */  }/************************************************************************//*                         cfg_mlog_mem_auto_dump                      	*//************************************************************************/ST_VOID cfg_mlog_mem_auto_dump (ST_VOID)  {#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_mem_auto_dump: entered." );#endif  /* Found 'MemAutoDump' flag                                           */  M_SET_MEM_CTRL( MEM_CTRL_AUTODUMP_EN );   /* autodump                */  }/************************************************************************//*                         cfg_mlog_log_file_name                      	*//************************************************************************/ST_VOID cfg_mlog_log_file_name (ST_VOID)  {  ST_CHAR  *fname;#ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_log_file_name: entered." );#endif  /* Found 'LogFileName' keyword, read the user defined log file name   */  if ( ( fname = cfg_get_string_ptr() ) != NULL )    {    strcpy( log_file_name, fname );    }  else    cfg_set_config_err();  }/************************************************************************//*                         cfg_mlog_log_mem_items                      	*//************************************************************************/ST_VOID cfg_mlog_log_mem_items (ST_VOID)  {  ST_UINT16 val; #ifdef S_TABLE_DEBUG  printf( "\ncfg_mlog_log_mem_items: entered." );#endif  /* Found 'LogMemItems' keyword, get the value                         */  if ( cfg_get_ushort( ( ST_UINT16 * )&val ) == SD_SUCCESS )    {    sLogCtrl->mc.maxItems = val;    /* Max num of writes to mem before*/                                    /* flushing to file                 */    }  else    {    cfg_set_config_err();    }  }/************************************************************************//*                         cfg_mlog_log_file_size                      	*//************************************************************************/ST_VOID cfg_mlog_log_file_size (ST_VOID)  {  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_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." );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -