[Feature][Modem]Update MTK MODEM V1.6 baseline version: MOLY.NR15.R3.MD700.IVT.MP1MR3.MP.V1.6
MTK modem version: MT2735_IVT_MOLY.NR15.R3.MD700.IVT.MP1MR3.MP.V1.6.tar.gz
RF modem version: NA
Change-Id: I45a4c2752fa9d1a618beacd5d40737fb39ab64fb
diff --git a/mcu/service/mcf/include/mcf_boot_trace.h b/mcu/service/mcf/include/mcf_boot_trace.h
new file mode 100644
index 0000000..2598fd5
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_boot_trace.h
@@ -0,0 +1,108 @@
+BOOT_TRC_MSG(MCF_BOOT_TRACE_TEST1, "[MCF] integer(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TRACE_TEST2, "[MCF] null")
+BOOT_TRC_MSG(MCF_BOOT_TRACE_TEST3, "[MCF] string(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TRACE_TEST4, "[MCF] integer(%d) string(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TRACE_TEST5, "[MCF] integer(%s) string(%s) integer(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_STRING, "%s")
+BOOT_TRC_MSG(MCF_BOOT_TR_CREATE_CUSTOM_FOLDER_FAIL, "[BOOT] mcf_create_custom_folder(): Create custom folder(%s) FAIL!! ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_COMPARE_FAIL, "[BOOT] mcf_read_ota_file(): Compare modified time of OTA file FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_FAIL, "[BOOT] mcf_read_ota_file(): Read OTA file FAIL!! path(%d), ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_OVERSIZE, "[BOOT] mcf_read_ota_file(): OTA file size(%d) is larger than allocated buffer size(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_DIGEST_FAIL, "[BOOT] mcf_read_ota_file(): OTA file(%s) digest FAIL!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_DECRYPTION_FAIL, "[BOOT] mcf_read_ota_file(): OTA file(%s) decryption FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_CHECKSUM_ERROR, "[BOOT] mcf_read_ota_file(): OTA file(%s) checksum ERROR!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_INVALID_FILE_VERSION, "[BOOT] mcf_read_ota_file(): OTA file version(%d) is INVALID!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_TAKE_WRITE_LOCK_FAIL, "[BOOT] mcf_read_ota_file(): Take write lock FAIL!! file(%s), path(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_FILE_OPERATION_MASK_FAIL, "[BOOT] mcf_read_ota_file(): OTA file(%s) operation mask(%d) is not set (%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_FAIL, "[BOOT] mcf_read_tlvota_file(): Read TLV-OTA file FAIL!! path(%d), sim_id(%d), ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_COMPARE_FAIL, "[BOOT] mcf_read_tlvota_file(): Compare modified time of OP-OTA file FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_OVERSIZE, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file size(%d) is larger than allocated buffer size(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_DIGEST_FAIL, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file(%s) digest FAIL!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_DECRYPTION_FAIL, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file(%s) decryption FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_CHECKSUM_ERROR, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file(%s) checksum ERROR!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_INVALID_FILE_VERSION, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file version(%d) is INVALID!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_TAKE_WRITE_LOCK_FAIL, "[BOOT] mcf_read_tlvota_file(): Take write lock FAIL!! file(%s), path(%d), sim_id(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_FILE_OPERATION_MASK_FAIL, "[BOOT] mcf_read_tlvota_file(): TLV-OTA file(%s) operation mask(%d) is not set (%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_COMPARE_FAIL, "[BOOT] mcf_read_general_tlvota_file(): Compare modified time of general OP-OTA file FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_FAIL, "[BOOT] mcf_read_general_tlvota_file(): Read general TLV-OTA file FAIL!! path(%d), ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_OVERSIZE, "[BOOT] mcf_read_general_tlvota_file(): TLV-OTA file size(%d) is larger than allocated buffer size(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_DIGEST_FAIL, "[BOOT] mcf_read_general_tlvota_file(): general TLV-OTA file(%s) digest FAIL!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_DECRYPTION_FAIL, "[BOOT] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) decryption FAIL!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_CHECKSUM_ERROR, "[BOOT] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) checksum ERROR!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_INVALID_FILE_VERSION, "[BOOT] mcf_read_general_tlvota_file(): General TLV-OTA file version(%d) is INVALID!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_TAKE_WRITE_LOCK_FAIL, "[BOOT] mcf_read_general_tlvota_file(): Take write lock FAIL!! file(%s), path(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_GENERAL_TLVOTA_FILE_OPERATION_MASK_FAIL, "[BOOT] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) operation mask(%d) is not set (%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DATA_DUMP_TRACE, "[BOOT] mcf_dump_data(): %d: %x")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_LID_FAIL, "[BOOT] mcf_do_ota_full(): Fail to read MCF LID(%d)!! record_idx(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_OTA_FILE_INFO, "[BOOT] mcf_do_ota_full(): Read OTA file. path(%d), name(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_OTA_FILE_FAIL, "[BOOT] mcf_do_ota_full(): Fail to read OTA file, cannot do full OTA!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_TLVOTA_FILE_INFO, "[BOOT] mcf_do_ota_full(): Read TLVOTA file. sim_id(%d), path(%d), name(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_GENERAL_TLVOTA_FILE_INFO, "[BOOT] mcf_do_ota_full(): Read General-TLVOTA file. path(%d), name(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_FILE, "[BOOT] mcf_do_ota_full(): Invalid file type(%s)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_NO_NEED1, "[BOOT] mcf_do_ota_full(): MD version is not changed, no need to do full OTA!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_NO_NEED2, "[BOOT] File: sw_version(%s), gen_time(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_NO_NEED3, "[BOOT] MD: sw_version(%s), build_time(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_GET_LID_INFO_FAIL, "[BOOT] mcf_do_ota_full(): Fail to get LID information!! lid(%d), nvram_ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_ATTR, "[BOOT] mcf_do_ota_full(): OTA attribute is not set, do not write to NVRAM. lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_WRITE_ITEM_NVRAM_FAIL, "[BOOT] mcf_do_ota_full(): Fail to write item LID(%d), record(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_WRITE_ITEM_NVRAM_SUCCESS, "[BOOT] mcf_do_ota_full(): Success to write item LID(%d), record(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_QUERY_ATTR_SET, "[BOOT] mcf_do_ota_full(): OTA query attribute is set, do not write to NVRAM. lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_ATTR2, "[BOOT] mcf_do_ota_full(): ERROR!! Both OTA normal and query attribute are set! lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_ATTR3, "[BOOT] mcf_do_ota_full(): ERROR!! Both OTA normal and query attribute are not set! lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_RESET_LID_FAIL, "[BOOT] mcf_do_ota_full(): Reset LID(%d) FAIL!!, total_record(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_RESET_ATTR_NOT_SET, "[BOOT] mcf_do_ota_full(): OTA reset attribute is not set!! lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_ITEM_LID_FAIL, "[BOOT] mcf_do_ota_full(): Fail to read item LID(%d), record(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_TAG_LEN, "[BOOT] mcf_do_ota_full(): Invalid item_tag_len(%d)!! max item_tag_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_ITEM_TAG, "[BOOT] %s")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_LARGE_VAL_LEN, "[BOOT] mcf_do_ota_full(): Invalid value len(%d)!! larger than current item len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_BYTE_UPDATE, "[BOOT] mcf_do_ota_full(): Update LID(%d) item. item_offset(%d), value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_BIT_LEN, "[BOOT] mcf_do_ota_full(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_BIT_OFFSET, "[BOOT] mcf_do_ota_full(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_BIT_UPDATE, "[BOOT] mcf_do_ota_full(): Update LID(%d) item. item_offset(%d), bit_offset(%d), bit_len(%d), value(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_SW_VERSION, "[BOOT] mcf_do_ota_full(): Invalid OTA file SW version!! file_version_len(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_SW_GEN_TIME, "[BOOT] mcf_do_ota_full(): Invalid OTA file SW gen time!! file_gen_time_len(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_WRITE_LID_FAIL, "[BOOT] mcf_do_ota_full(): Fail to write MCF LID(%d)!! record_idx(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_TAKE_READ_LOCK_FAIL, "[BOOT] mcf_do_ota_full(): Read OTA, Fail to take read lock!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_GENERAL_TLVOTA_FILE_TAKE_READ_LOCK_FAIL, "[BOOT] mcf_do_ota_full(): Read General-TLVOTA, Fail to take read lock!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_READ_TLVOTA_FILE_TAKE_READ_LOCK_FAIL, "[BOOT] mcf_do_ota_full(): Read TLVOTA, Fail to take read lock!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_GET_ALL_LID_INFO_FAIL, "[BOOT] mcf_do_ota_full(): is_reset_all(%d). Fail to get all LID information!! lid(%d), nvram_ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_ALL_RESET_LID_FAIL, "[BOOT] mcf_do_ota_full(): is_reset_all(%d). Reset All LID(%d) FAIL!!, total_record(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_ALL_RESET_ATTR_NOT_SET, "[BOOT] mcf_do_ota_full(): is_reset_all(%d). OTA all reset LID attribute is not set!! lid(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_STORE_LID, "[BOOT] mcf_do_ota_full(): Save Last modified LID(%d), pos(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_ALL_RESET_LID, "[BOOT] mcf_do_ota_full(): is_reset_all(%d). Reset LID(%d) to default value")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_RESET_TIME, "[BOOT] mcf_do_ota_full(): Reset LID to default value duration(%ul)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_SEARCH_STORE_LID, "[BOOT] mcf_do_ota_full(): Search last modified LID LID(%d) pos(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_INVALID_ARRAY_INDEX_LEN, "[BOOT] mcf_do_ota_full(): Invalid array_index_len(%d)!! max array_index_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_GID_ARRAY_INDEX, "[BOOT] %d, %s")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_PARA, "[BOOT] mcf_read_ota_buffer(): Invalid parameters!! LID(%d), buffer(%x), size(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_START, "[BOOT] mcf_read_ota_buffer(): START! LID(%d), record(%d), buffer(%x), size(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_FILE, "[BOOT] mcf_read_ota_buffer(): Invalid file type(%s)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_GET_LID_INFO_FAIL, "[BOOT] mcf_read_ota_buffer(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_SIZE, "[BOOT] mcf_read_ota_buffer(): Invalid buffer_size(%d)!! record_size(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_ATTR, "[BOOT] mcf_read_ota_buffer(): ERROR!! OTA query attribute is not set! LID(%d), attribute(%x)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_ARRAY_INDEX_LEN, "[BOOT] mcf_read_ota_buffer(): Invalid array_index_len(%d)!! max array_index_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_LARGE_VAL_LEN, "[BOOT] mcf_read_ota_buffer(): Invalid value len(%d)!! larger than current item len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_FILE_SW_VERSION, "[BOOT] mcf_do_ota_full(): OTA file sw version(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_FILE_GEN_TIME, "[BOOT] mcf_do_ota_full(): OTA file gen time(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_FILE_TOOL_VERSION, "[BOOT] mcf_do_ota_full(): OTA file tool version(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_FILE_INVALID_TOOL_VERSION, "[BOOT] mcf_do_ota_full(): Invalid OTA file tool version!! file_tool_version_len(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_NOT_RESET, "[BOOT] mcf_do_ota_full(): Not reset(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_TOTAL_RESET_TIME, "[BOOT] mcf_do_ota_full(): total duration(%ul)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_BYTE_UPDATE, "[BOOT] mcf_read_ota_buffer(): Update LID(%d) item. item_offset(%d), value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_INVALID_BIT_LEN, "[BOOT] mcf_read_ota_buffer(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_BIT_UPDATE, "[BOOT] mcf_read_ota_buffer(): Update LID(%d) item. item_offset(%d), bit_offset(%d), bit_len(%d), value(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_OTA_BUFFER_TAKE_READ_LOCK_FAIL, "[BOOT] mcf_read_ota_buffer(): Fail to take read lock!! LID(%d)!!")
+BOOT_TRC_MSG(MCF_BOOT_TR_FIND_TAG_ERROR_CAN_NOT_FIND_TAG, "[BOOT] mcf_find_tag_offset(): can not find this tag")
+BOOT_TRC_MSG(MCF_BOOT_TR_FIND_GID_ERROR_CAN_NOT_FIND_GID, "[BOOT] mcf_find_gid_offset(): can not find this gid(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_FIND_GID_ERROR_FORMULA_OUT_OF_BOUND, "[BOOT] mcf_find_gid_offset(): array formula out of bound(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_FIND_GID_ERROR_CAN_NOT_FIND_FORMULA, "[BOOT] mcf_find_gid_offset(): can not find this gid formula(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_FIND_GID_RETURN_LID_NUM_ERROR_CAN_NOT_FIND_GID, "[BOOT] mcf_find_gid_return_lid_num(): can not find this gid(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_STORE_LID_FAIL, "[BOOT] mcf_do_ota_full(): Save Last modified LID fail!!! LID buffer is full(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_DO_OTA_FULL_GET_DEFAULT_OTA_FILE_NAME_FROM_INI, "[BOOT] mcf_do_ota_full(): Get default OTA name from INI (%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_ALLOC_MEM_ERROR, "[BOOT] mcf_malloc() : Alloc memory error")
+BOOT_TRC_MSG(MCF_BOOT_TR_TASK_MAIN_OTA_DURATION, "[BOOT] mcf_task_main() : mcf_read_ota_buffer total duration(%ul)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_BUFFER_SBP_START, "[BOOT] mcf_read_tlvota_buffer_sbp_tag(): START! ps_id(%d), LID(%d), buffer(%x), size(%d), sbp_id(%d), mcc(%s), mnc(%s)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_BUFFER_MULTI_TAG_BYTE_UPDATE, "[BOOT] mcf_read_tlvota_buffer_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_BUFFER_MULTI_TAG_BIT_UPDATE, "[BOOT] mcf_read_tlvota_buffer_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), bit_offset(%d), bit_len(%d), value_len(%d), value(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_BYTE_UPDATE, "[BOOT] mcf_read_tlvota_buffer_sbp_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), value_len(%d)")
+BOOT_TRC_MSG(MCF_BOOT_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_BIT_UPDATE, "[BOOT] mcf_read_tlvota_buffer_sbp_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), bit_offset(%d), bit_len(%d), value_len(%d), value(%d)")
\ No newline at end of file
diff --git a/mcu/service/mcf/include/mcf_debug.h b/mcu/service/mcf/include/mcf_debug.h
new file mode 100644
index 0000000..2233f3f
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_debug.h
@@ -0,0 +1,75 @@
+#ifndef _MCF_DEBUG_H
+#define _MCF_DEBUG_H
+
+#include "TrcMod.h"
+#include "mcf_trace.h"
+#include "dhl_trace.h"
+#include <ex_public.h>
+
+/*
+ * Use DHL logging.
+ */
+/*#define mcf_trace_error(...) \
+ do{ \
+ if(INT_QueryExceptionStatus() == KAL_FALSE) \
+ { \
+ dhl_trace(TRACE_ERROR, DHL_USER_FLAG_NONE, __VA_ARGS__); \
+ } \
+ }while(0)*/
+
+/*#define mcf_trace_warn(...) \
+ do{ \
+ if(INT_QueryExceptionStatus() == KAL_FALSE) \
+ { \
+ dhl_trace(TRACE_ERROR, DHL_USER_FLAG_NONE, __VA_ARGS__); \
+ } \
+ }while(0)*/
+
+/*#define mcf_trace_info(...) \
+ do{ \
+ if(INT_QueryExceptionStatus() == KAL_FALSE) \
+ { \
+ dhl_trace(TRACE_INFO, DHL_USER_FLAG_NONE, __VA_ARGS__); \
+ } \
+ }while(0)*/
+
+/*#define mcf_trace_func(...) \
+ do{ \
+ if(INT_QueryExceptionStatus() == KAL_FALSE) \
+ { \
+ dhl_trace(TRACE_FUNC, DHL_USER_FLAG_NONE, __VA_ARGS__); \
+ } \
+ }while(0)*/
+
+typedef struct {
+ char log_format[200];
+} MCF_BOOT_LOG;
+
+#undef BOOT_TRC_MSG
+#define BOOT_TRC_MSG(_name,_format) _name,
+typedef enum _mcf_boot_trace_enum{
+ #include "mcf_boot_trace.h"
+} mcf_boot_trace_enum;
+
+#define END_PATTERN 0xDEADDEAD
+// trace_enum, MCF_TYPE_ENUM, value, MCF_TYPE_ENUM, value, MCF_TYPE_ENUM, value, ...
+#define MCF_BOOT_TRACE(_trace_enum, ...) \
+ do{ \
+ if (kal_query_systemInit() == KAL_TRUE) \
+ { \
+ mcf_write_boot_trace(_trace_enum, ##__VA_ARGS__, END_PATTERN); \
+ } \
+ }while(0)
+
+#if defined(ATEST_SYS_MCF) && !defined(__MTK_TARGET__)
+ #ifndef __SE7_SD8_AUTO_UT__
+ #define MCF_BOOT_PRINT(...) printf(__VA_ARGS__);
+ #else
+ #define MCF_BOOT_PRINT(...)
+ #endif
+#else
+ #define MCF_BOOT_PRINT(...) dhl_print(TRACE_INFO, DHL_USER_FLAG_NONE, MOD_MCF, __VA_ARGS__);
+#endif
+
+#endif /* _MCF_DEBUG_H */
+
diff --git a/mcu/service/mcf/include/mcf_defs.h b/mcu/service/mcf/include/mcf_defs.h
new file mode 100644
index 0000000..40e482a
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_defs.h
@@ -0,0 +1,277 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2018
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ * Filename:
+ * ---------
+ * mcf_defs.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * MD Configuration Framework internal configuration and data structure definition.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *==============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *==============================================================================
+ *******************************************************************************/
+#ifndef __INC_MCF_DEFS_H
+#define __INC_MCF_DEFS_H
+
+#include "kal_public_api.h"
+
+#include "mcf_ut.h"
+#include "mcf_utfwk.h"
+
+/*------------------------------------------------------------------------------
+ * Configuration.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Helper Macro.
+ *----------------------------------------------------------------------------*/
+
+
+/*------------------------------------------------------------------------------
+ * Constant definition.
+ *----------------------------------------------------------------------------*/
+#define MCF_MAX_TAG_LEN 32
+
+/* OTA/TLV-OTA file related definition */
+#define MCF_FILE_TYPE_OTA "OTA"
+#define MCF_FILE_TYPE_TLVOTA "TLV-OTA"
+#define MCF_FILE_TYPE_INI "INI"
+#define MCF_FILE_MAX_TAG_LEN 256
+#define MCF_FILE_MAX_ARRAY_TAG_LEN 64
+
+/* CCCIFS related definition */
+#if defined(__MTK_TARGET__)
+ #define MCF_FS_DEFAULT_FOLDER_PATH "T:" // AP: "/vendor/etc/mdota"
+#else
+ #define MCF_FS_DEFAULT_FOLDER_PATH "..\\..\\WIN32FS\\mdota" // MoDIS: "WIN32FS\\mdota"
+#endif
+#define MCF_FS_DEFAULT_OTA_FILE_NAME "MTK_OTA.mcfota"
+#define MCF_FS_DEFAULT_TLVOTA_FILE_NAME "MTK_OPOTA.mcfopota"
+#define MCF_FS_CUSTOM_FOLDER_PATH "S:\\mdota" // AP: "/vendor/nvcfg/mdota"
+#define MCF_FS_GENERAL_TLVOTA_FILE_NAME "MTK_OPOTA_GENERAL.mcfopota"
+#define MCF_FS_TLVOTA_FILE_PREFIX "MTK_OPOTA_SBPID"
+#define MCF_FS_DEFAULT_INI_FILE_NAME "MTK_MD_OTA_CONFIG.ini"
+#define MCF_FS_DEFAULT_DUMP_FOLDER_NAME "MTK_LAST_DUMP_FOLDER_NAME.txt"
+#define MCF_FS_DEFAULT_AT_CMD_RESULT "MTK_READ_WRITE_RESULT.txt"
+#define MCF_FS_DEFAULT_OTA_MERGED_FILE_NAME "MTK_OTA_MERGED.mcfota"
+#define MCF_FS_DEFAULT_TLVOTA_MERGED_FILE_NAME "MTK_OPOTA_MERGED.mcfopota"
+#define MCF_FS_GENERAL_TLVOTA_MERGED_FILE_NAME "MTK_OPOTA_GENERAL_MERGED.mcfopota"
+#define MCF_FS_DEFAULT_TLVOTA_MERGED_FILE_PREFIX "MTK_OPOTA_MERGED"
+
+/* MCF_BOOT_TRACE_F_XXXX is used in init stage trace */
+#define MCF_BOOT_TRACE_F_FULL_OTA_SUCCESS 0x00000001UL
+#define MCF_BOOT_TRACE_F_FULL_OTA_FAIL 0x00000002UL
+#define MCF_BOOT_TRACE_F_CUSTOM_FOLDER_EXIST 0x00000004UL
+#define MCF_BOOT_TRACE_F_CREATE_CUSTOM_FOLDER_FAIL 0x00000008UL
+#define MCF_BOOT_TRACE_F_READ_OTA_FILE_FAIL 0x00000010UL
+#define MCF_BOOT_TRACE_F_OTA_FILE_OVERSIZE 0x00000020UL
+#define MCF_BOOT_TRACE_F_READ_TLVOTA_FILE_FAIL 0x00000040UL
+#define MCF_BOOT_TRACE_F_TLVOTA_FILE_OVERSIZE 0x00000080UL
+#define MCF_BOOT_TRACE_F_READ_FILE_LID_FAIL 0x00000100UL
+#define MCF_BOOT_TRACE_F_WRITE_FILE_LID_FAIL 0x00000200UL
+#define MCF_BOOT_TRACE_F_READ_ITEM_LID_FAIL 0x00000400UL
+#define MCF_BOOT_TRACE_F_WRITE_ITEM_LID_FAIL 0x00000800UL
+#define MCF_BOOT_TRACE_F_READ_SW_INFO_LID_FAIL 0x00001000UL
+#define MCF_BOOT_TRACE_F_WRITE_SW_INFO_LID_FAIL 0x00002000UL
+#define MCF_BOOT_TRACE_F_NO_NEED 0x00004000UL
+#define MCF_BOOT_TRACE_F_INVALID_FILE 0x00008000UL
+#define MCF_BOOT_TRACE_F_TAKE_READ_LOCK_FAIL 0x00010000UL
+#define MCF_BOOT_TRACE_F_TAKE_WRITE_LOCK_FAIL 0x00020000UL
+#define MCF_BOOT_TRACE_F_DECRYPTION_FAIL 0x00040000UL
+#define MCF_BOOT_TRACE_F_DIGEST_FAIL 0x00400000UL
+#define MCF_BOOT_TRACE_F_CHECKSUM_ERROR 0x00080000UL
+#define MCF_BOOT_TRACE_F_READ_INT_INFO_LID_FAIL 0x00100000UL
+#define MCF_BOOT_TRACE_F_WRITE_INT_INFO_LID_FAIL 0x00200000UL
+#define MCF_BOOT_TRACE_F_OPERATION_MASK_FAIL 0x00800000UL
+
+/* MCF object related definition */
+#define MCF_W_LOCK_OBJECT_SLEEP_TICKS KAL_TICKS_10_MSEC_REAL
+#define MCF_DEL_OBJECT_SLEEP_TICKS KAL_TICKS_10_MSEC_REAL
+#define MCF_LOCK_NAME "MCF_LOCK"
+#define MCF_UTFWK_LOCK_NAME "MCF_UTFWK_LOCK"
+
+/* MCF dump related definition */
+#define MCF_DUMP_FOLDER_PREFIX "MCF_DUMP"
+#define MCF_DUMP_FILE_PREFIX "MCF_DUMP_LID"
+#define MCF_DUMP_FILE_POSTFIX ".dump"
+#define MCF_DUMP_LID_HEADER_SIZE 32 // MUST lager than sizeof(mcf_dump_lid_header_struct)
+#define MCF_DUMP_LID_SYNC_TOKEN "NV_RAW"
+#define MCF_DUMP_LID_HEADER_VERSION 2
+
+/*------------------------------------------------------------------------------
+ * Internal data structure defintion.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Global variables.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Internal function prototype.
+ *----------------------------------------------------------------------------*/
+
+#endif /* __INC_MCF_DEFS_H */
+
diff --git a/mcu/service/mcf/include/mcf_object.h b/mcu/service/mcf/include/mcf_object.h
new file mode 100644
index 0000000..d7eeea0
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_object.h
@@ -0,0 +1,221 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2018
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ * Filename:
+ * ---------
+ * mcf_object.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Helper for object management and synchronization.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *==============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ * removed!
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *==============================================================================
+ *******************************************************************************/
+
+#ifndef __INC_MCF_OBJECT_H
+#define __INC_MCF_OBJECT_H
+
+#include "kal_public_api.h"
+
+#include "mcf_struct.h"
+
+struct _mcf_object_template;
+extern kal_enhmutexid mcf_enhmutex_g;
+static INLINE kal_bool mcf_is_object_valid(struct _mcf_object_template *object);
+
+/*------------------------------------------------------------------------------
+ * Data structure defintion.
+ *----------------------------------------------------------------------------*/
+#define MCF_MUTEX_LOCK(_lock) \
+ if (kal_query_systemInit() == KAL_FALSE) { \
+ kal_take_enh_mutex(_lock); \
+ }
+#define MCF_MUTEX_UNLOCK(_lock) \
+ if (kal_query_systemInit() == KAL_FALSE) { \
+ kal_give_enh_mutex(_lock); \
+ }
+
+#define MCF_IS_VALID_OBJECT_WO_LOCK(_object) \
+ ((_object) != NULL && (_object)->ref_count == 2)
+
+#define MCF_IS_VALID_OBJECT(_object) \
+ mcf_is_object_valid((struct _mcf_object_template *)_object)
+
+#define MCF_R_LOCK_OBJECT(_object, _lock) \
+ MCF_MUTEX_LOCK(_lock); \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object) && ((_object)->writer_cnt == 0)) { \
+ ++((_object)->reader_cnt); \
+ } else { \
+ (_object) = NULL; \
+ } \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_R_UNLOCK_OBJECT(_object, _lock) \
+ ASSERT((_object)); \
+ MCF_MUTEX_LOCK(_lock); \
+ ASSERT((_object)->reader_cnt > 0); \
+ --((_object)->reader_cnt); \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_INIT_OBJECT_BEGIN(_object, _lock) \
+ ASSERT(_object); \
+ MCF_MUTEX_LOCK(_lock); \
+ ASSERT((_object)->ref_count == 0); \
+ (_object)->ref_count = 1; \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_INIT_OBJECT_END(_object, _lock) \
+ ASSERT(_object); \
+ MCF_MUTEX_LOCK(_lock); \
+ ASSERT(_object->ref_count == 1); \
+ (_object)->ref_count = 2; \
+ (_object)->reader_cnt = 0; \
+ (_object)->writer_cnt = 0; \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_DEINIT_OBJECT_BEGIN(_object, _lock) \
+ MCF_MUTEX_LOCK(_lock); \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object)) { \
+ --((_object)->ref_count); \
+ while ((_object)->reader_cnt != 0 || (_object)->writer_cnt != 0) { \
+ MCF_MUTEX_UNLOCK(_lock); \
+ kal_sleep_task(MCF_DEL_OBJECT_SLEEP_TICKS); \
+ MCF_MUTEX_LOCK(_lock); \
+ } \
+ ASSERT((_object)->ref_count == 1); \
+ } else { \
+ (_object) = NULL; \
+ } \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_DEINIT_OBJECT_END(_object, _lock) \
+ MCF_MUTEX_LOCK(_lock); \
+ ASSERT((_object)->ref_count == 1); \
+ ASSERT((_object)->reader_cnt == 0); \
+ ASSERT((_object)->writer_cnt == 0); \
+ (_object)->ref_count = 0; \
+ MCF_MUTEX_UNLOCK(_lock)
+
+#define MCF_W_LOCK_OBJECT(_object, _lock) \
+ MCF_MUTEX_LOCK(_lock); \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object)) { \
+ while ((_object)->reader_cnt != 0 || (_object)->writer_cnt != 0) { \
+ MCF_MUTEX_UNLOCK(_lock); \
+ kal_sleep_task(MCF_W_LOCK_OBJECT_SLEEP_TICKS); \
+ MCF_MUTEX_LOCK(_lock); \
+ } \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object)) { \
+ ++((_object)->writer_cnt); \
+ } else { \
+ (_object) = NULL; \
+ MCF_MUTEX_UNLOCK(_lock); \
+ } \
+ } else { \
+ (_object) = NULL; \
+ MCF_MUTEX_UNLOCK(_lock); \
+ }
+
+#define MCF_W_UNLOCK_OBJECT(_object, _lock) \
+ ASSERT((_object)); \
+ ASSERT((_object)->writer_cnt == 1); \
+ --((_object)->writer_cnt); \
+ MCF_MUTEX_UNLOCK(_lock)
+
+/* Safely convert between Read & Write lock at the same time. */
+#define MCF_R_TO_W_LOCK_OBJECT(_object, _lock) \
+ MCF_MUTEX_LOCK(_lock); \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object)) { \
+ ASSERT((_object)->reader_cnt > 0); \
+ --((_object)->reader_cnt); \
+ while ((_object)->reader_cnt != 0 || (_object)->writer_cnt != 0) { \
+ MCF_MUTEX_UNLOCK(_lock); \
+ kal_sleep_task(MCF_W_LOCK_OBJECT_SLEEP_TICKS); \
+ MCF_MUTEX_LOCK(_lock); \
+ } \
+ if (MCF_IS_VALID_OBJECT_WO_LOCK(_object)) { \
+ ++((_object)->writer_cnt); \
+ } else { \
+ (_object) = NULL; \
+ MCF_MUTEX_UNLOCK(_lock); \
+ } \
+ } else { \
+ (_object) = NULL; \
+ MCF_MUTEX_UNLOCK(_lock); \
+ }
+
+#define MCF_W_TO_R_LOCK_OBJECT(_object, _lock) \
+ ASSERT((_object)); \
+ ASSERT((_object)->reader_cnt == 0); \
+ ASSERT((_object)->writer_cnt == 1); \
+ --((_object)->writer_cnt); \
+ ++((_object)->reader_cnt); \
+ MCF_MUTEX_UNLOCK(_lock)
+
+/*------------------------------------------------------------------------------
+ * Functions for Synchronization
+ *----------------------------------------------------------------------------*/
+struct _mcf_object_template {
+ MCF_DECLARE_OBJECT
+};
+
+static INLINE kal_bool mcf_is_object_valid(struct _mcf_object_template *object)
+{
+ kal_bool ret;
+
+ MCF_MUTEX_LOCK(mcf_enhmutex_g);
+ ret = MCF_IS_VALID_OBJECT_WO_LOCK(object)? KAL_TRUE:KAL_FALSE;
+ MCF_MUTEX_UNLOCK(mcf_enhmutex_g);
+
+ return ret;
+}
+
+#endif /* __INC_MCF_OBJECT_H */
diff --git a/mcu/service/mcf/include/mcf_trace.h b/mcu/service/mcf/include/mcf_trace.h
new file mode 100644
index 0000000..fe0589e
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_trace.h
@@ -0,0 +1,18 @@
+#ifndef __INC_MCF_TRACE_H
+#define __INC_MCF_TRACE_H
+
+#ifndef GEN_FOR_PC
+ #include "kal_public_defs.h"
+#endif /* GEN_FOR_PC */
+
+#include "dhl_trace.h"
+#include "dhl_def.h"
+
+#if !defined(GEN_FOR_PC)
+#if defined(__DHL_MODULE__) || defined(__CUSTOM_RELEASE__)
+#endif /* TST Trace Defintion */
+#endif
+#if !defined(GEN_FOR_PC)
+#include "mcf_trace_mod_mcf_utmd.h"
+#endif
+#endif /* __INC_MCF_TRACE_H */
diff --git a/mcu/service/mcf/include/mcf_trace_mod_mcf_utmd.json b/mcu/service/mcf/include/mcf_trace_mod_mcf_utmd.json
new file mode 100644
index 0000000..5df99c4
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_trace_mod_mcf_utmd.json
@@ -0,0 +1,3706 @@
+{
+ "legacyParameters": {},
+ "module": "MOD_MCF",
+ "startGen": "Legacy",
+ "endGen": "-",
+ "traceClassDefs": [
+ {
+ "TRACE_GROUP_1": {
+ "debugLevel": "Low",
+ "tag": [
+ "Baseline",
+ "TRACE_GROUP_1"
+ ],
+ "traceType": "InternalDesign"
+ }
+ },
+ {
+ "TRACE_DEBUG": {
+ "debugLevel": "Low",
+ "tag": [
+ "Baseline",
+ "TRACE_DEBUG"
+ ],
+ "traceType": "InternalDesign"
+ }
+ },
+ {
+ "TRACE_INFO": {
+ "debugLevel": "Medium",
+ "tag": [
+ "Baseline",
+ "TRACE_INFO"
+ ],
+ "traceType": "InternalDesign"
+ }
+ },
+ {
+ "TRACE_WARNING": {
+ "debugLevel": "High",
+ "tag": [
+ "Baseline",
+ "TRACE_WARNING"
+ ],
+ "traceType": "InternalDesign"
+ }
+ },
+ {
+ "TRACE_ERROR": {
+ "debugLevel": "Ultra-High",
+ "tag": [
+ "Baseline",
+ "TRACE_ERROR"
+ ],
+ "traceType": "DesignInfo"
+ }
+ },
+ {
+ "TRACE_SENSITIVE_USIR": {
+ "debugLevel": "Medium",
+ "tag": [
+ "Baseline",
+ "USIR"
+ ],
+ "traceType": "DesignInfo"
+ }
+ },
+ {
+ "TRACE_INFO_ULTRA_HIGH": {
+ "debugLevel": "Ultra-High",
+ "tag": [
+ "Baseline",
+ "TRACE_INFO"
+ ],
+ "traceType": "DesignInfo"
+ }
+ }
+ ],
+ "traceDefs": [
+ {
+ "MCF_TR_READ_OTA_FILE_INVALID_PATH_TYPE": {
+ "format": "[MCF] mcf_read_ota_file(): Invalid path_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_INVALID_PATH": {
+ "format": "[MCF] mcf_read_ota_file(): Invalid path(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): Read OTA file FAIL!! path(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_read_ota_file(): Modified time of OTA file. path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_GROUP_1"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_COMPARE_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): Compare modified time of OTA file FAIL!!",
+ "traceClass": "TRACE_WARNING"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_DECRYPTION_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file(%s) decryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_DIGEST_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file(%s) digest FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_INVALID_FILE_VERSION": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_CHECKSUM_ERROR": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file(%s) checksum ERROR!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_OVERSIZE": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): Take write lock FAIL!! file(%s), path(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_READ_INI_FILE_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): Read ini file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_FILE_OPERATION_MASK_FAIL": {
+ "format": "[MCF] mcf_read_ota_file(): OTA file(%s) operation_mask(%d) is not set (%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): Read TLV-OTA file FAIL!! path(%d), sim_id(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_read_tlvota_file(): Modified time of TLV-OTA file. path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_INVALID_PATH": {
+ "format": "[MCF] mcf_read_tlvota_file(): Invalid path(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_COMPARE_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): Compare modified time of OP-OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_DECRYPTION_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file(%s) decryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_DIGEST_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file(%s) digest FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_INVALID_FILE_VERSION": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_CHECKSUM_ERROR": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file(%s) checksum ERROR!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_OVERSIZE": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): Take write lock FAIL!! file(%s), path(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_FILE_OPERATION_MASK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_file(): TLV-OTA file(%s) operation_mask(%d) is not set (%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): Read general TLV-OTA file FAIL!! path(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): Modified time of general TLV-OTA file. path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_COMPARE_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): Compare modified time of general OP-OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_INVALID_PATH": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): Invalid path(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_DECRYPTION_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) decryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_DIGEST_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) digest FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_INVALID_FILE_VERSION": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_CHECKSUM_ERROR": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) checksum ERROR!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_OVERSIZE": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): Take write lock FAIL!! file(%s), path(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_TAG_TYPE": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file tag type (%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_READ_GENERAL_TLVOTA_FILE_OPERATION_MASK_FAIL": {
+ "format": "[MCF] mcf_read_general_tlvota_file(): General TLV-OTA file(%s) operation_mask(%d) is not set (%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_INVALID_PATH_TYPE": {
+ "format": "[MCF] mcf_read_ini_file(): Invalid path_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_FAIL": {
+ "format": "[MCF] mcf_read_ini_file(): Read INI file FAIL!! path(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_DECRYPTION_FAIL": {
+ "format": "[MCF] mcf_read_ini_file(): INI file(%s) decryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_INVALID_FILE_VERSION": {
+ "format": "[MCF] mcf_read_ini_file(): INI file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_CHECKSUM_ERROR": {
+ "format": "[MCF] mcf_read_ini_file(): INI file(%s) checksum ERROR!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_OVERSIZE": {
+ "format": "[MCF] mcf_read_ini_file(): INI file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_INI_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_ini_file(): Take write lock FAIL!! file(%s), path(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_UPDATE_OPOTA_FILE_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_update_ota(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_START": {
+ "format": "[MCF] mcf_update_ota_file(): START!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_END": {
+ "format": "[MCF] mcf_update_ota_file(): END!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_OTA_FILE_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Read OTA file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_TLVOTA_FILE_FILENAME_ERROR": {
+ "format": "[MCF] mcf_update_ota_file(): Read TLVOTA file. Filename error! sbp_id(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_TLVOTA_FILE_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Read TLVOTA file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_GENERAL_TLVOTA_FILE_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Read General TLVOTA file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_INI_FILE_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Read ini file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_OTA_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Take OTA write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_TLVOTA_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Take TLVOTA write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_TLVOTA_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_update_ota_file(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_GENERAL_TLVOTA_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Take general TLVOTA write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_RESET_MD": {
+ "format": "[MCF] mcf_update_ota_file(): Reset MD! path_type(%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_NO_UPDATE_OTA": {
+ "format": "[MCF] mcf_update_ota_file(): No update OTA!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_NO_READ_INI": {
+ "format": "[MCF] mcf_update_ota_file(): No need to read ini case!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_INI": {
+ "format": "[MCF] mcf_update_ota_file(): Read ini case!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_TRIGGER_DSBP": {
+ "format": "[MCF] mcf_update_ota_file(): Trigger DSBP! path_type(%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_GENERAL_TLVOTA_TRIGGER_DSBP": {
+ "format": "[MCF] mcf_update_ota_file(): General TLV Trigger DSBP! path_type(%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_TLVOTA_TRIGGER_DSBP": {
+ "format": "[MCF] mcf_update_ota_file(): TLV OTA Trigger DSBP! path_type(%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_CRITICAL_TLVOTA_TRIGGER_DSBP": {
+ "format": "[MCF] mcf_update_ota_file(): Critical TLV OTA Trigger DSBP! path_name (%s), path_type(%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_CRITICAL_GTLVOTA_TRIGGER_DSBP": {
+ "format": "[MCF] mcf_update_ota_file(): Critical general TLV OTA Trigger DSBP! path_type (%d), path type time(0x%x 0x%x),time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_READ_INI_FAIL": {
+ "format": "[MCF] mcf_update_ota_file(): Read ini file fail",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_RETURN_VALUE": {
+ "format": "[MCF] mcf_update_ota_file(): Return Num of trigger DSBP(%d)!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_OTA_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_update_ota_file(): OTA OTA time(0x%x), Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_GTLVOTA_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_update_ota_file(): general TLV OTA time(0x%x), Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_CGTLVOTA_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_update_ota_file(): Critical general TLV OTA time(0x%x, Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_TLVOTA_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_update_ota_file(): TLV OTA time(0x%x), Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_INI_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_update_ota_file(): INI OTA time(0x%x), Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_TLVOTA_PATH_NAME": {
+ "format": "[MCF] mcf_update_ota_file(): TLV OTA name(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_TLVOTA_PS_ID": {
+ "format": "[MCF] mcf_update_ota_file(): TLV OTA ps id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_TLVOTA_SBP_ID": {
+ "format": "[MCF] mcf_update_ota_file(): TLV OTA sbp id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_UPDATE_GENERAL_TLVOTA": {
+ "format": "[MCF] mcf_update_ota_file(): General TLV OTA have updated",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_NO_UPDATE_GENERAL_TLVOTA": {
+ "format": "[MCF] mcf_update_ota_file(): General TLV OTA have not updated",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_NO_CRITICAL_CASE": {
+ "format": "[MCF] mcf_update_ota_file(): Update TLV OTA no critical case",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_FIND_INI_TAGNAME": {
+ "format": "[MCF] mcf_update_ota_file(): find ini tag name (%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_FIND_INI_TAGNAME_NULL": {
+ "format": "[MCF] mcf_update_ota_file(): find ini tag name null",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_UPDATE_OTA_INI_READ": {
+ "format": "[MCF] mcf_update_ota_file(): read ini path(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_L4_UPDATE_OTA_DSBP_IS_ONGOING": {
+ "format": "[MCF] mcf_l4_update_ota(): Num of DSBP(%d) is on going!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_L4_UPDATE_OPOTA_FILE_UPDATE_OTA": {
+ "format": "[MCF] mcf_l4_update_ota(): Call mcf_update_ota_file START!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_L4_SET_CONFIG_CMD_RESULT": {
+ "format": "[MCF] mcf_l4_set_config(): Write AT cmd result(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_L4_SET_CONFIG_DELETE_FILE_FAIL": {
+ "format": "[MCF] mcf_l4_set_config(): Delete file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_SET_CONFIG_DSBP_ONGOING": {
+ "format": "[MCF] mcf_l4_set_config(): Ignore AT command due to MCF DSBP is on-going. ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_L4_SET_CONFIG_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_l4_set_config(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_DUMP_DATA_CMD_RESULT": {
+ "format": "[MCF] mcf_l4_dump_data(): Write AT cmd result(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_L4_DUMP_DATA_DELETE_FILE_FAIL": {
+ "format": "[MCF] mcf_l4_dump_data(): Delete file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_CONFIG_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_config(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_set_file_path(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_READ_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Fail to read MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_WRITE_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Fail to write MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_OTA_FILE_PATH_AP": {
+ "format": "[MCF] mcf_set_file_path(): AP set OTA file path(%s), name(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_OTA_FILE_PATH_MD": {
+ "format": "[MCF] mcf_set_file_path(): MD set OTA file path(%s), name(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_TLVOTA_FILE_PATH_AP": {
+ "format": "[MCF] mcf_set_file_path(): AP set TLV-OTA file path(%s), name(%s), ps_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_TLVOTA_FILE_PATH_MD": {
+ "format": "[MCF] mcf_set_file_path(): MD set TLV-OTA file path(%s), name(%s), sim_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_PATH_TYPE": {
+ "format": "[MCF] mcf_set_file_path(): Invalid path_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_set_file_path(): Modified time of OTA file. path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_FILE_COMPARE_OTA_FILE_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Compare modified time of OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_FILE_NOT_EXIST": {
+ "format": "[MCF] mcf_set_file_path(): File is not existed(%s\\%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_FILE_NOT_CHANGE": {
+ "format": "[MCF] mcf_set_file_path(): TLV-OTA file is not changed. Do not trigger DSBP!! is_deactivated(%d), path_type(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_SW_VERSION": {
+ "format": "[MCF] mcf_set_file_path(): Invalid OTA file SW version!! file_version_len(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_SW_GEN_TIME": {
+ "format": "[MCF] mcf_set_file_path(): Invalid OTA file SW gen time!! file_gen_time_len(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Read file to buffer FAIL!! config_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_RESET_BUFFER_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Deactivate operator setting, reset buffer FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_set_file_path(): Take TLVOTA write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_CONFIG_TYPE": {
+ "format": "[MCF] mcf_set_file_path(): Invalid config_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_FILE_PATH_INVALID_FILE": {
+ "format": "[MCF] mcf_set_file_path(): Invalid TLVOTA file type!! file_type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_SET_CONFIG_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_set_config(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_GET_APPLIED_FILE_PATH": {
+ "format": "[MCF] mcf_get_applied_file_path(): Get applied file result(%d), ps_id(%d), sim_id(%d), config_type(%d), path_type(%d), file(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_GET_APPLIED_FILE_PATH_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_get_applied_file_path(): Take read lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_GET_APPLIED_FILE_PATH_UNSUPPORTED_CONFIG_TYPE": {
+ "format": "[MCF] mcf_get_applied_file_path(): Unsupported config_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_GET_CONFIG_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_get_config(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_START": {
+ "format": "[MCF] mcf_do_ota_by_lid(): START! LID(%d), record(%d), record_amount(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_LID_INVALID_PARA": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid parameters!!, LID(%d), lid_info_addr(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_LID_INVALID_FILE": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_INVALID_ATTR": {
+ "format": "[MCF] mcf_do_ota_by_lid(): ERROR!! OTA attribute is not set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_WRITE_ITEM_NVRAM_SUCCESS": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Success to write item LID(%d), record_idx(%d)!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_WRITE_ITEM_NVRAM_FAIL": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Fail to write item LID(%d), record_idx(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Fail to take read lock!! LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_DOUBLE_ATTR": {
+ "format": "[MCF] mcf_do_ota_by_lid(): ERROR!! Both OTA normal and query attribute are set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_READ_ITEM_NVRAM_FAIL": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Fail to read item LID(%d), record_idx(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_INVALID_BIT_OFFSET": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_INVALID_TAG_LEN": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_LARGE_VAL_LEN": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid value len(%d)!! larger than current item len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_BYTE_UPDATE": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Update LID(%d) item. item_offset(%d), value_len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_BIT_UPDATE": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Update LID(%d) item. item_offset(%d), bit_offset(%d), bit_len(%d), value(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_LID_OTA_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_do_ota_by_lid(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_START": {
+ "format": "[MCF] mcf_read_ota_buffer(): START! LID(%d), record(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_PARA": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid parameters!! LID(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_FILE": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_read_ota_buffer(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_SIZE": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid buffer_size(%d)!! record_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_ATTR": {
+ "format": "[MCF] mcf_read_ota_buffer(): ERROR!! OTA query attribute is not set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_TAG_LEN": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_LARGE_VAL_LEN": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid value len(%d)!! larger than current item len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_BYTE_UPDATE": {
+ "format": "[MCF] mcf_read_ota_buffer(): Update LID(%d) item. item_offset(%d), value_len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_BIT_UPDATE": {
+ "format": "[MCF] mcf_read_ota_buffer(): Update LID(%d) item. item_offset(%d), bit_offset(%d), bit_len(%d), value(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_BIT_OFFSET": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_ota_buffer(): Fail to take read lock!! LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_read_ota_buffer(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_OTA_BUFFER_DURATION": {
+ "format": "[MCF] mcf_read_ota_buffer(): lid(%d), record_id(%d), duration(%ul)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_START_USIR": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): START! ps_id(%d), sim_id(%d), LID(%d), buffer(%x), size(%d), tag(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_PARA": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid parameters!! ps_id(%d), LID(%d), buffer(%x), size(%d), tag_addr(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_FILE": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_SIZE": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid buffer_size(%d)!! LID(%d), record_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_ATTR_NOT_SET": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): ERROR!! OTA by op attribute is not set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_BIT_OFFSET": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_TAG_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_LARGE_VAL_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid value len(%d)!! larger than current item len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_BYTE_UPDATE_USIR": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Update LID(%d) item with tag(%S). item_offset(%d), value_len(%d)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_BIT_UPDATE_USIR": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Update LID(%d) item with tag(%S). item_offset(%d), bit_offset(%d), bit_len(%d), value(%d)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_START": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): ps_id(%d), sim_id(%d), tag_num(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_FILE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_SIZE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid buffer_size(%d)!! LID(%d), record_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_ATTR_NOT_SET": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): ERROR!! OTA by op attribute is not set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_BIT_OFFSET": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_TAG_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_LARGE_VAL_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid value len(%d)!! larger than current item len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_BYTE_UPDATE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), value_len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_BIT_UPDATE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), bit_offset(%d), bit_len(%d), value_len(%d), value(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_MULTI_TAG_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_multi_tag(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_START": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): ps_id(%d), sim_id(%d), tag_num(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_FILE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_SIZE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid buffer_size(%d)!! LID(%d), record_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_ATTR_NOT_SET": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): ERROR!! OTA by op attribute is not set! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid bit_len(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_BIT_OFFSET": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid item_bit_offset(%d)!! current item len(%d), bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_TAG_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_LARGE_VAL_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid value len(%d)!! larger than current item len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_BYTE_UPDATE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), value_len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_BIT_UPDATE": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Update LID(%d) item with tag(%s). item_offset(%d), bit_offset(%d), bit_len(%d), value_len(%d), value(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_MULTI_TAG_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_multi_tag(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_START": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): START! ps_id(%d), LID(%d), buffer(%x), size(%d), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_SNPRINTF_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): Invalid tag_name! tag_name(%s), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_INVALID_PARA": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): Invalid parameters!! ps_id(%d), LID(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_INVALID_SBP_TAG": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): Invalid SBP tag!! sbp_id(%d), mcc(%s), mnc(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): Take read lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_READ_TLVOTA_BUFFER_SBP_DURATION": {
+ "format": "[MCF] mcf_read_tlvota_buffer_sbp_tag(): lid(%d), ps_id(%d), duration(%ul)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_READ_NVRAM_TLVOTA_BUFFER_SBP_START": {
+ "format": "[MCF] mcf_read_nvram_and_tlvota_buffer_sbp_tag(): START! ps_id(%d), LID(%d), record(%d), buffer(%x), size(%d), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_READ_NVRAM_TLVOTA_BUFFER_SBP_INVALID_PARA": {
+ "format": "[MCF] mcf_read_nvram_and_tlvota_buffer_sbp_tag(): Invalid parameters!! ps_id(%d), LID(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CHECK_FILE_FAIL": {
+ "format": "[MCF] mcf_check_file_exist(): Open file(%s\\%s) FAIL!! fs_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_DSBP_MODE_READ_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_dsbp_mode(): Fail to read SW info LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_DSBP_MODE_WRITE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_dsbp_mode(): Fail to write SW info LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_DSBP_MODE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_set_dsbp_mode(): Invalid SIM ID!! sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_DSBP_MODE_START": {
+ "format": "[MCF] mcf_set_dsbp_mode(): Start to set dsbp mode. is_ignore_dsbp(%d), is_general(%d), sim_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_NOT_RESET_READ_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_not_reset(): Fail to read SW info LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_NOT_RESET_WRITE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_not_reset(): Fail to write SW info LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_NOT_RESET_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_set_not_reset(): Invalid SIM ID!! sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_NOT_RESET_INVALID_CONFIG_TYPE": {
+ "format": "[MCF] mcf_set_not_reset(): Invalid config type (%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DATA_DUMP_TRACE": {
+ "format": "[MCF] mcf_dump_data(): %d: 0x%x",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_BOOT_TRACE": {
+ "format": "[MCF Boot] %s",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_ERROR": {
+ "format": "[MCF] mcf_respond_dsbp_result(): DSBP result FAIL!!(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_INVALID_FILE_PATH": {
+ "format": "[MCF] mcf_respond_dsbp_result(): DSBP result(%d) FAIL!! Invalid path_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_respond_dsbp_result(): DSBP result(%d) FAIL!! Read MCF file result(%d) FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_respond_dsbp_result(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_REPORT_STATE_INVALID_OP": {
+ "format": "[MCF] mcf_report_dsbp_result(): Invalid operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_REPORT_STATE_CMD_RESULT": {
+ "format": "[MCF] mcf_report_dsbp_result(): Write URC result(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_REPORT_STATE_INVALID_FILE_PATH": {
+ "format": "[MCF] mcf_report_dsbp_result(): DSBP result(%d) FAIL!! Invalid path_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_REPORT_STATE_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_report_dsbp_result(): DSBP result(%d) FAIL!! Read MCF file result(%d) FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_REPORT_STATE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_report_dsbp_result(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ILM_UNKNOWN_MSG": {
+ "format": "[MCF] mcf_on_ilm(): Receive unknown ilm msg_id(%x)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_TAG_ERROR_INPUT_NULL": {
+ "format": "[MCF] mcf_find_tag_offset(): input ptr is NULL",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_TAG_ERROR_CAN_NOT_FIND_LID_NUM": {
+ "format": "[MCF] mcf_find_tag_offset(): can not find this lid num(%d) struct_idx(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_TAG_ERROR_CAN_NOT_FIND_TAG": {
+ "format": "[MCF] mcf_find_tag_offset(): can not find this tag",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_TAG_RETURN_VALUE": {
+ "format": "[MCF] mcf_find_tag_offset(): lid_num(%d), byte_offset(%d), bit_offset(%d), size(%d), duration(%ul)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_TAG_ERROR_OVER_SIZE": {
+ "format": "[MCF] mcf_find_tag_offset(): can not find this tag due to oversize tag_size(%d) variable_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_ERROR_INPUT_NULL": {
+ "format": "[MCF] mcf_find_gid_offset(): input ptr is NULL",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_ERROR_CAN_NOT_FIND_GID": {
+ "format": "[MCF] mcf_find_gid_offset(): can not find this gid(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_ERROR_FORMULA_OUT_OF_BOUND": {
+ "format": "[MCF] mcf_find_gid_offset(): array formula out of bound(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_ERROR_CAN_NOT_FIND_FORMULA": {
+ "format": "[MCF] mcf_find_gid_offset(): can not find this gid formula(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_START": {
+ "format": "[MCF] mcf_find_gid_offset(): start to find gid(%d), array_idx(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_RETURN_VALUE": {
+ "format": "[MCF] mcf_find_gid_offset(): lid_num(%d), byte_offset(%d), bit_offset(%d), size(%d), is_bit(%d), duration(%ul)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_GID_RETURN_LID_NUM_ERROR_CAN_NOT_FIND_GID": {
+ "format": "[MCF] mcf_find_gid_return_lid_num(): can not find this gid(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ENCRYPT": {
+ "format": "[MCF] mcf_encrypt(): encrypt successfully duration(%ul)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DECRYPT": {
+ "format": "[MCF] mcf_decrypt(): decrypt successfully duration(%ul)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECKSUM_ERROR": {
+ "format": "[MCF] mcf_check_check_sum(): check_sum(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_EM_UPDATE_INVALID_INFO": {
+ "format": "[MCF] mcf_em_update_req_hdlr(): EM update info(%d) is invalid!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_EM_UPDATE_INVALID_SOURCE": {
+ "format": "[MCF] mcf_em_update_req_hdlr(): EM update source(%d) is invalid!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_START": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Start to dump LID. folder(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Get LID information FAIL!! lid(%d), nvram_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_SIZE_NOT_ALIGNMENT": {
+ "format": "[MCF] mcf_dump_all_lid_data(): LID(%d) structure size(%d) is not 4-byte alignment!! padding(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_OTA_CALLBACK": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dumping OTA. LID(%d), type(%d), record_idx(%d), buffer(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_OTA_DUMP_FAIL": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_READ_NVRAM_FAIL": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Read NVRAM LID(%d) FAIL!! record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_DUMP_DEFAULT_FILENAME_ERROR": {
+ "format": "[MCF] mcf_dump_all_lid_data(): dump default filename error!! lid(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_DUMP_SIM_FILENAME_ERROR": {
+ "format": "[MCF] mcf_dump_all_lid_data(): dump sim filename error!! lid(%d), sim_id(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_NULL_MCC_MNC": {
+ "format": "[MCF] mcf_dump_all_lid_data(): MCC(%s) or MNC(%s) is NULL!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_OTA_BY_OP_CALLBACK_1_USIR": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dumping OP-OTA. ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_OTA_BY_OP_CALLBACK_2": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dumping OP-OTA. LID(%d), type(%d), record_idx(%d), buffer(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_OTA_BY_OP_DUMP_FAIL": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_NUMBER": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dump number of LID(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_DUMP_FOLDER_NAME": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Last dump folder name(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_CANNOT_FIND_LID": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Can not find LID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_SNPRINTF_DUMP_FOLDER": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Dump folder name unknown error. ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_ALL_LID_DELETE_FILE_FAIL": {
+ "format": "[MCF] mcf_dump_all_lid_data(): Delete file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_DUMP_DATA_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_dump_data(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_WRITE_BUFFER_STRING": {
+ "format": "[MCF] mcf_write_dump_buffer(): (%d), (%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_DUMP_MCF_LID_FAIL": {
+ "format": "[MCF] mcf_custom_dump_mcf_data(): Dump MCF LID(%d) FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_MCF_LID_INVALID_TYPE": {
+ "format": "[MCF] mcf_custom_dump_mcf_data(): Dump MCF LID(%d) with invalid type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_MCF_LID_READ_NVRAM_FAIL": {
+ "format": "[MCF] mcf_custom_dump_mcf_data(): Read NVRAM LID(%d) FAIL!! record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_MCF_LID_QUERY_MCF_FAIL": {
+ "format": "[MCF] mcf_custom_dump_mcf_data(): Query LID(%d) FAIL!! record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_MCF_LID_UNKNOWN_LID": {
+ "format": "[MCF] mcf_custom_dump_mcf_data(): UNKNOWN LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_WRITE_BUFFER_START": {
+ "format": "[MCF] mcf_write_buffer(): Start to write buffer!! file(%s), folder_path(%s), size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_WRITE_BUFFER_FAIL": {
+ "format": "[MCF] mcf_write_buffer(): FS write data FAIL!! file_handle(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_START": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Start to auto select TLV-OTA file. ps_id(%d), sim_id(%d), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_FILE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_FILE_NO_NEED": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): is_ignore_dsbp(%d) is set. No need to auto select TLV-OTA file",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_GENERAL_TLVOTA_FILE_NO_NEED": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): is_ignore_dsbp(%d) is set. No need to auto select General TLV-OTA file",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_TLVOTA_FILE_FILENAME_ERROR": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Read TLVOTA file. Filename error! sbp_id(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Modified time of TLV-OTA file. sbp_id(%d), path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_FILE_COMPARE_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Compare modified time of TLV-OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Read TLV-OTA file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_INVALID_SW_VERSION": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Invalid TLVOTA file SW version!! file_version_len(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_INVALID_GEN_TIME": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Invalid TLVOTA file SW gen time!! file_gen_time_len(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_INVALID_TOOL_VERSION": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Invalid TLVOTA file tool version!! tool_version_len(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_INVALID_FILE": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Invalid TLVOTA file type!! file_type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_FILE_SW_VERSION": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): TLVOTA file sw version(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_FILE_GEN_TIME": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): TLVOTA file gen time(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_FILE_TOOL_VERSION": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): TLVOTA file tool version(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_TLVOTA_FILE_NOT_CHANGE": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Modified time of TLV-OTA file does not change. path_type(%d), need_update(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_GENERAL_FILE_NOT_CHANGE": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Modified time of general TLV-OTA file does not change. No need to read again. path_type(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_GENERAL_FILE_MODIFIED_TIME": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Modified time of general TLV-OTA file. path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_GENERAL_FILE_COMPARE_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Compare modified time of general TLV-OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_GENERAL_FILE_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Read general TLV-OTA file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_TLVOTA_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Take write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_READ_LID_FAIL": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): Fail to read MCF LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_AUTO_SELECT_BIN_DURATION": {
+ "format": "[MCF] mcf_auto_select_tlvota_file(): duration(%ul)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_START": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): Start to store config. ps_id(%d), update(%d)!!",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_READ_LID_FAIL": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): Fail to read MCF LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_WRITE_LID_FAIL": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): Fail to write MCF LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_CONFIG_AFTER_DSBP_DURATION": {
+ "format": "[MCF] mcf_set_config_after_dsbp(): duration(%ul)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_ITEM_START": {
+ "format": "[MCF] mcf_find_ini_item(): Start to find ini item! item(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_ITEM_ERROR_INPUT_NULL": {
+ "format": "[MCF] mcf_find_ini_item(): input ptr is NULL",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_ITEM_ERROR_ITEM_LENGTH": {
+ "format": "[MCF] mcf_find_ini_item(): find wrong item length",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_ITEM_ERROR_CAN_NOT_FIND_ITEM": {
+ "format": "[MCF] mcf_find_ini_item(): can not find this item",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_ITEM_RETURN_VALUE": {
+ "format": "[MCF] mcf_find_ini_item(): Return value: item(%s), value(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_START": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): tag string(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_RETURN_NUM": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): sbp_id_num(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_ERROR_INPUT_NULL": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): input ptr is NULL",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_ERROR_CAN_NOT_FIND_ITEM": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): can not find this item",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_ICCID_USIR": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): ICCID(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_FIND_INI_SBP_ID_NA": {
+ "format": "[MCF] mcf_find_ini_sbp_id(): find general OP-OTA case-NA, ret(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_COMPOSE_INI_ITEM_ERROR_ITEM_LENGTH": {
+ "format": "[MCF] mcf_compose_ini_item(): find wrong item length",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMPOSE_INI_ITEM_INVALID_BUFF": {
+ "format": "[MCF] mcf_compose_ini_item(): invalid buffer size",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMPOSE_INI_ITEM_INVALID_ORIGINAL_VALUE": {
+ "format": "[MCF] mcf_compose_ini_item(): invalid original value(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMPOSE_INI_ITEM_INVALID_BUFF_LENGTH": {
+ "format": "[MCF] mcf_compose_ini_item(): invalid buffer length",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMPOSE_INI_ITEM_START": {
+ "format": "[MCF] mcf_compose_ini_item(): Start! item(%s) value(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_GET_FILE_LAST_MOD_TIME_START": {
+ "format": "[MCF] mcf_get_file_last_mod_time(): Start! Name(%s) Apply path type (%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_GET_FILE_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_get_file_last_mod_time(): Modified time path_type(%d), ret(%d), time(0x%x 0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_GET_FILE_LAST_MOD_TIME_INVALID_PATH_TYPE": {
+ "format": "[MCF] mcf_get_file_last_mod_time(): Invalid path_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_GET_FILE_LAST_MOD_TIME_FAIL": {
+ "format": "[MCF] mcf_get_file_last_mod_time(): Can not get time. path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_RESULT_IND_CNT": {
+ "format": "[MCF] mcf_respond_dsbp_result() Num of DSBP result ind (%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_RESULT_IND_NO_SIM": {
+ "format": "[MCF] mcf_respond_dsbp_result() NO SIM!! ps_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_RESPOND_DSBP_CMD_RESULT": {
+ "format": "[MCF] mcf_respond_dsbp_result(): Write AT cmd response(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_INI_READ_INI_FAIL": {
+ "format": "[MCF] mcf_config_ini_info(): Read ini file FAIL! path_type(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_INI_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_config_ini_info(): INI OTA time(0x%x), Runtime time(0x%x), Last read time(0x%x)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_INI_READ": {
+ "format": "[MCF] mcf_config_ini_info(): read ini path(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_START": {
+ "format": "[MCF] mcf_check_lid_need_reset(): Start to check if LID(%d) is in last modified LID list.",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_NOT_FOUND": {
+ "format": "[MCF] mcf_check_lid_need_reset(): LID(%d) is not found in last modified LID list. last_pos(%d), curr_pos(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_FOUND": {
+ "format": "[MCF] mcf_check_lid_need_reset(): LID(%d) is found in last modified LID list. last_pos(%d), curr_pos(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_BY_PSID_START": {
+ "format": "[MCF] mcf_check_lid_need_reset_by_psid(): Start to check if LID(%d) is in last modified LID list. ps_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_BY_PSID_NOT_FOUND": {
+ "format": "[MCF] mcf_check_lid_need_reset_by_psid(): LID(%d) is not found in last modified LID list.",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_BY_PSID_TLVOTA_FOUND": {
+ "format": "[MCF] mcf_check_lid_need_reset_by_psid(): LID(%d) is found in tlvota last modified LID list.",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_BY_PSID_GENERAL_TLVOTA_FOUND": {
+ "format": "[MCF] mcf_check_lid_need_reset_by_psid(): LID(%d) is found in general tlvota last modified LID list.",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_LID_NEED_RESET_BY_PSID_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_check_lid_need_reset_by_psid(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CHECK_RESET_AND_TLVOTA_BUFFER_SBP_TAG_INVALID_PARA": {
+ "format": "[MCF] mcf_check_reset_and_tlvota_buffer_sbp_tag(): Invalid parameters!! ps_id(%d), LID(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CHECK_RESET_AND_TLVOTA_BUFFER_SBP_TAG_GET_DEFAULT_VALUE_FAIL": {
+ "format": "[MCF] mcf_check_reset_and_tlvota_buffer_sbp_tag(): Get default value FAIL! LID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_QUERY_LID_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_variable_operation(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_VARIABLE_OPERATION_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_variable_operation(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_VARIABLE_OPERATION_UNKOWN_ACTION": {
+ "format": "[MCF] mcf_l4_variable_operation(): Unknown action(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_L4_ASSIGN_COMBINED_FILE_PATH_UNKNOWN_OP": {
+ "format": "[MCF] mcf_l4_assign_combined_file_path(): Unknown operation(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_START": {
+ "format": "[MCF] mcf_config_LID_variable(): Start to Config LID variable. lid(%d), rec_id(%d), tag_name(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_config_LID_variable(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_config_LID_variable(): Get LID information FAIL!! lid(%d), nvram_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_INVALID_REC_ID": {
+ "format": "[MCF] mcf_config_LID_variable(): Invalid record ID. record id(%d), total record id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_CALLBACK": {
+ "format": "[MCF] mcf_config_LID_variable(): Read default OTA by callback. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_DUMP_ERROR": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_NVRAM": {
+ "format": "[MCF] mcf_config_LID_variable(): Read default OTA by NVRAM. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_NVRAM_FAIL": {
+ "format": "[MCF] mcf_config_LID_variable(): Read default OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_NVRAM_NOT_CALLBACK": {
+ "format": "[MCF] mcf_config_LID_variable(): Read default OTA by NVRAM (non-register callback). LID(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OTA_NVRAM_FAIL_NOT_CALLBACK": {
+ "format": "[MCF] mcf_config_LID_variable(): Read default OTA by NVRAM FAIL (non-register callback)!!. LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_USIR": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA. LID(%d), record_id(%d), ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_CALLBACK_USIR": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA by callback. LID(%d), type(%d), record_id(%d), sbp_id(%d), mnc(%s), mcc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_DUMP_FAIL": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_NVRAM": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA by NVRAM. LID(%d), type(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_NVRAM_FAIL": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_NVRAM_NOT_CALLBACK_USIR": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA by NVRAM (non-register callback). LID(%d) ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_OPOTA_NVRAM_FAIL_NOT_CALLBACK": {
+ "format": "[MCF] mcf_config_LID_variable(): Read OP OTA by NVRAM FAIL (non-register callback)!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_FIND_TAG_FAIL": {
+ "format": "[MCF] mcf_config_LID_variable(): Cannot find the tag!! LID(%d), tag_name(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_LENGTH": {
+ "format": "[MCF] mcf_config_LID_variable(): Read length of tag. read length(%d), variable size(%d), total size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_TOTAL_ARRAY_SIZE": {
+ "format": "[MCF] mcf_config_LID_variable(): Read variable by byte. Total array size(%d), variable size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_VARIABLE_BYTE": {
+ "format": "[MCF] mcf_config_LID_variable(): Read variable by byte. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_VARIABLE_BIT_WHOLE": {
+ "format": "[MCF] mcf_config_LID_variable(): Read whole variable by bit. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_VARIABLE_BIT": {
+ "format": "[MCF] mcf_config_LID_variable(): Read variable by bit. value(%d), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_INVALID_ARR_SIZE": {
+ "format": "[MCF] mcf_config_LID_variable(): Invalid array size. variable array size(%d), tag name array size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_VARIABLE_BIT_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_config_LID_variable(): Read variable by bit. Invalid bit len!! variable size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CONFIG_LID_VARIABLE_READ_VARIABLE_BIT_SIZE": {
+ "format": "[MCF] mcf_config_LID_variable(): Read variable by bit. upper variable size(%d) read length(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_OTA_NEED_UPDATE_START": {
+ "format": "[MCF] mcf_check_ota_need_update(): Start to check ota need update. ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_OTA_NEED_UPDATE_FAIL": {
+ "format": "[MCF] mcf_check_ota_need_update(): Fail to auto select file. ps_id(%d), ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CHECK_OTA_NEED_UPDATE_RESULT": {
+ "format": "[MCF] mcf_check_ota_need_update(): OTA need update result. ps_id(%d), ret(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_CHECK_OTA_NEED_UPDATE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_check_ota_need_update(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_TASK_CLEAN_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF] mcf_task_clean(): Fail to take write lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_START": {
+ "format": "[MCF] mcf_query_variable_value(): Start to query variable. format(%d), ota(%d), number(%d), rec_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_query_variable_value(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_GET_LID_NUM_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Get LID number FAIL!! gid(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Get LID information FAIL!! lid(%d), nvram_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_INVALID_REC_ID": {
+ "format": "[MCF] mcf_query_variable_value(): Invalid record ID. record id(%d), total record id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_CALLBACK": {
+ "format": "[MCF] mcf_query_variable_value(): Read default OTA by callback. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_DUMP_ERROR": {
+ "format": "[MCF] mcf_query_variable_value(): Read OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_NVRAM": {
+ "format": "[MCF] mcf_query_variable_value(): Read default OTA by NVRAM. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_NVRAM_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Read default OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_NVRAM_NOT_CALLBACK": {
+ "format": "[MCF] mcf_query_variable_value(): Read default OTA by NVRAM (non-register callback). LID(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OTA_NVRAM_FAIL_NOT_CALLBACK": {
+ "format": "[MCF] mcf_query_variable_value(): Read default OTA by NVRAM FAIL (non-register callback)!!. LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_USIR": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA. LID(%d), record_id(%d), ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_CALLBACK_USIR": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA by callback. LID(%d), type(%d), record_id(%d), sbp_id(%d), mnc(%s), mcc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_DUMP_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_NVRAM": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA by NVRAM. LID(%d), type(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_NVRAM_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_NVRAM_NOT_CALLBACK_USIR": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA by NVRAM (non-register callback). LID(%d) ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_OPOTA_NVRAM_FAIL_NOT_CALLBACK": {
+ "format": "[MCF] mcf_query_variable_value(): Read OP OTA by NVRAM FAIL (non-register callback)!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_TAG": {
+ "format": "[MCF] mcf_query_variable_value(): tag_name(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_FIND_TAG_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): Cannot find the tag!! LID(%d), tag_name(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_LENGTH": {
+ "format": "[MCF] mcf_query_variable_value(): Read length of tag. read length(%d), variable size(%d), total size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_TOTAL_ARRAY_SIZE": {
+ "format": "[MCF] mcf_query_variable_value(): Read variable by byte. Total array size(%d), variable size(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_VARIABLE_BYTE": {
+ "format": "[MCF] mcf_query_variable_value(): Read variable by byte. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_VARIABLE_BIT_WHOLE": {
+ "format": "[MCF] mcf_query_variable_value(): Read whole variable by bit. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_VARIABLE_BIT": {
+ "format": "[MCF] mcf_query_variable_value(): Read variable by bit. value(%d), len(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_INVALID_ARR_SIZE": {
+ "format": "[MCF] mcf_query_variable_value(): Invalid array size. variable array size(%d), tag name array size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_VARIABLE_BIT_INVALID_BIT_LEN": {
+ "format": "[MCF] mcf_query_variable_value(): Read variable by bit. Invalid bit len!! variable size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_READ_VARIABLE_BIT_SIZE": {
+ "format": "[MCF] mcf_query_variable_value(): Read variable by bit. upper variable size(%d) read length(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_query_variable_value(): Invalid array index length. max array idx len(%d), req array idex(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_ARRAY_INDEX": {
+ "format": "[MCF] mcf_query_variable_value(): gid(%d) array_idx(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_QUERY_VARIABLE_VALUE_FIND_GID_FAIL": {
+ "format": "[MCF] mcf_query_variable_value(): find gid FAIL!! gid(%d) array_idx(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_START": {
+ "format": "[MCF] mcf_set_variable_value(): Start to set variable. format(%d), ota(%d), number(%d), rec_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Fail to read file(%s\\%s), ret(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid array index length. max array idx len(%d), req array idex(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_ARRAY_INDEX": {
+ "format": "[MCF] mcf_set_variable_value(): gid(%d) array_idx(%s)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_VALUE": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid hex value(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Fail to get LID information!! lid(%d), nvram_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_DELETE_FILE_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Delete file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_FILE_SIZE": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid File Size(%d), max file size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_FIND_GID_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): find gid FAIL!! gid(%d) array_idx(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_VAL_LEN": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid value length! value_len(%d), variable_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_INVALID_VALUE_LEN": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid value length! value_len(%d) cannot be odd",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_READ_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Fail to read LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_MERGE_GID_TO_FILE_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Merge GID to OTA file FAIL!!file_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_MERGE_FILE": {
+ "format": "[MCF] mcf_set_variable_value(): Copy OTA file!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_MERGE_OTA_FILE_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Merge OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Take OTA read lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_WRITE_FILE_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Write file FAIL!! path(%s), name(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_WRITE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Fail to write LID(%d)!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_TLVOTA_SBPID": {
+ "format": "[MCF] mcf_set_variable_value(): Get TLVOTA file. sbp_id(%d), mcc(%s), mnc(%s)!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_SET_VARIABLE_VALUE_TAG_SNPRINTF_FAIL": {
+ "format": "[MCF] mcf_set_variable_value(): Invalid tag_name! tag_name(%s), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_INVALID_PATH_TYPE": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Invalid path_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_INVALID_FILE_TYPE": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_READ_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Fail to read MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_WRITE_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Fail to write MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_INVALID_CONFIG_TYPE": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Invalid config_type(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_ASSIGN_COMBINED_FILE_PATH_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_assign_combined_file_path(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_FILE_TYPE": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_FILE_NOT_EXIST": {
+ "format": "[MCF] mcf_combined_ota_file(): File is not existed(%s\\%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_READ_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to read MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_READ_FILE_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to read file(%s\\%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_FILE": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_SEARCH_STORE_LID": {
+ "format": "[MCF] mcf_combined_ota_file(): Search last modified LID LID(%d) pos(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_STORE_LID_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Save Last modified LID(%d) fail!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_STORE_LID": {
+ "format": "[MCF] mcf_combined_ota_file(): Save Last modified LID(%d), pos(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_WRITE_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to write MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_MERGE_OTA_FILE": {
+ "format": "[MCF] mcf_combined_ota_file(): Copy OTA file",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_MERGE_OTA_FILE_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Merge OTA file FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_FILE_SIZE": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid file size(%d), max file size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_WRITE_FILE_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to write file(%s\\%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_STORE_LAST_LID_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Store TLVOTA last modified LID FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_TLVOTA_START": {
+ "format": "[MCF] mcf_combined_ota_file(): Start to combine TLVOTA file. sim_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_CONFIG_TYPE": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid config_type(%d)!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_DELETE_FILE_FAIL": {
+ "format": "[MCF] mcf_combined_ota_file(): Delete file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMBINED_OTA_FILE_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_combined_ota_file(): Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_CLEAR_LAST_MODIFIED_LID_INVALID_SIZE": {
+ "format": "[MCF] mcf_clear_last_modified_lid: Invalid lid count(%d),(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FILL_TAG_ENTRY_INVALID_SBP_TAG": {
+ "format": "[MCF] mcf_fill_tag_entry(): Invalid SBP tag!! sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_FILL_TAG_ENTRY_SNPRINTF_FAIL": {
+ "format": "[MCF] mcf_fill_tag_entry(): Invalid tag_name! tag_name(%s), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_START": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): START! sim_id(%d), sbp_id(%d), mcc(%s), mnc(%s), is_general(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Invalid SIM ID!! sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Invalid array_index_len(%d)!! max array_index_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_GET_LID_INFO_FAIL": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_SEARCH_STORE_LID": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Search last modified LID. LID(%d) pos(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_STORE_LID": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Save last modified LID. LID(%d) pos(%d) sim_id(%d)",
+ "traceClass": "TRACE_INFO_ULTRA_HIGH"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_SEARCH_STORE_LID_FAIL": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Save Last modified LID fail!!! LID buffer is full(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_INVALID_FILE_VERSION": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): OTA file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_INVALID_FILE": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Invalid file type(%s)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_RESET_ATTR_NOT_SET": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Attribute is not set!! lid(%d), attribute(%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_STORE_TLVOTA_MODIFIED_LID_NOT_RESET": {
+ "format": "[MCF] mcf_store_tlvota_modified_lid(): Not reset(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MCF_SNPRINTF_FAIL": {
+ "format": "[MCF] mcf_snprintf(): FAIL. num(%d), ret(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Start! OTA type(%d), Operation(%d), SIM(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_INVALID_SIM_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid Parameters! SIM(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_ALLOCATE_MEMORY_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Error!! Unable to allocate required memory",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_OTA_FILE_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_OTA_FILE_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_TLVOTA_FILE_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_TLVOTA_FILE_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_TEST_OTA_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_TEST_OTA_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_TEST_OTA_QUERY_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_TEST_OTA_QUERY_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_SW_INFO_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_SW_INFO_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_INTERNAL_INFO_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset NVRAM_EF_MCF_INTERNAL_INFO_LID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_OPEN_OTA_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Open OTA test data(%s) FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_OTA_LID_INVALID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): LID(%d) in OTA file is not match given LID",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_TAKE_OTA_READ_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Read OTA test data FAIL!! Fail to take read lock!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_TAKE_TLV_OTA_READ_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Read OP-OTA test data FAIL!! Fail to take read lock!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_OPEN_TLVOTA_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Open OP-OTA test data(%s) FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_TLVOTA_LID_INVALID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): LID(%d) in OP-OTA file is not match given LID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_GET_LID_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_LID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Reset LID!! LID(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_RESET_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to reset LID!! LID(%d), total_record(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_INVALID_REC_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid record ID!! LID(%d), record(%d), total_record(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_WRITE_OTA_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to write MCF OTA file info to NVRAM!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_WRITE_TLVOTA_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Fail to write MCF TLV-OTA file info to NVRAM!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_FILE_OVERSIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_FILE_DECRYPTION_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): file(%s) decryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_FILE_CHECKSUM_ERROR": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): file(%s) checksum ERROR!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_FILE_INVALID_FILE_VERSION": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): file version(%d) is INVALID!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_INVALID_OTA_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid OTA type!! LID(%d), LID attribute(%x), ota_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_INVALID_TLVOTA_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid OP-OTA type!! LID(%d), LID attribute(%x), ota_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_INVALID_SBP_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid SBP ID! SBP_ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_TAG_IS_NOT_MATCH": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Tag(%d_%s_%s) in OP-OTA file is not match given tag(%d_%s_%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_ENV_TAG_INVALID_ARRAY_INDEX_LEN": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_env(): Invalid item_tag_len(%d)!! max item_tag_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_CHECK_TAG_ENTRY_INVALID_SBP_TAG": {
+ "format": "[MCF UTFWK] mcf_utfwk_check_tag_entry(): Invalid SBP tag!! sbp_id(%d), mcc(%s), mnc(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_OTA_CALLBACK_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_ota_callback(): Start!! ID(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_OTA_CALLBACK_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_ota_callback(): Invalid ID! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_DSBP_CALLBACK_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_dsbp_callback(): Start!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_INITIAL_DSBP_CALLBACK_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_initial_dsbp_callback(): Invalid ID! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Start! OTA type(%d), SIM(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_INITIAL_ENV_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Initial env is fail, ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_INVALID_SIM_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Invalid Parameters! ID(%d), SIM(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_GET_LID_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_UPDATE_DEFAULT_OTA_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Update default OTA FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_UPDATE_OTA_FOR_QUERY_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Update OTA for Query file FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_UPDATE_OP_OTA": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Update OP-OTA sim_id(%d), sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_UPDATE_OP_OTA_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Update OP-OTA FAIL!! ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_INVALID_OTA_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Invalid OTA type!! LID attribute(%x), ota_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_INVALID_TLVOTA_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Invalid OP-OTA type!! LID attribute(%x), ota_type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_NOT_REGISTER_OTA_CALLBACK": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Not register OTA callback function!!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_NOT_REGISTER_DSBP_CALLBACK": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Not register DSBP callback function!!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_EXECUTE_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_execute(): Invalid ID! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_PARA": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid parameters!! LID(%d), buffer(%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Start! ID(%d), dump type(%d), OTA type(%d), LID(%d), Record(%d), SIM(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_GET_LID_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Get LID information FAIL!! lid(%d), nvram_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_REC_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid record ID. record id(%d), total record id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_LID": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): LID(%d) of GID(%d) item is not match given LID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_CALLBACK": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read default OTA by callback. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_DUMP_ERROR": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_NVRAM": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read default OTA by NVRAM. LID(%d), type(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_NVRAM_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read default OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_USIR": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA. LID(%d), record_id(%d), ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_CALLBACK_USIR": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA by callback. LID(%d), type(%d), record_id(%d), sbp_id(%d), mnc(%s), mcc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_DUMP_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA dump LID(%d) FAIL!! ret(%d), lid_size(%d), return_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_NVRAM": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA by NVRAM. LID(%d), type(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_NVRAM_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA by NVRAM FAIL!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_NVRAM_NOT_CALLBACK": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read default OTA by NVRAM (non-register callback). LID(%d), record_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OTA_NVRAM_NOT_CALLBACK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read default OTA by NVRAM FAIL (non-register callback)!!. LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_NVRAM_NOT_CALLBACK_USIR": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA by NVRAM (non-register callback). LID(%d) ps_id(%d), sbp_id(%d), mcc(%s), mnc(%s), iccid(%S)",
+ "traceClass": "TRACE_SENSITIVE_USIR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_OPOTA_NVRAM_NOT_CALLBACK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read OP OTA by NVRAM FAIL (non-register callback)!! LID(%d), record_idx(%d), buffer(0x%x), size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_SIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid buffer_size(%d)!! record_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_BUFF_SIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid buffer_size(%d)!! item_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_TAG_INFO": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): tag_name(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_GID": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Dump one variable, Invalid GID(%d)!!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_DUMP_ONE_VARIABLE_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): GID(%d), array index(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_FIND_TAG_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Cannot find the tag!! LID(%d), tag_name(%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_TAG_LENGTH": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read length of tag. read length(%d), variable size(%d), total size(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_ARR_SIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid array size. variable array size(%d), tag name array size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_TOTAL_ARRAY_SIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read variable by byte. Total array size(%d), variable size(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_VARIABLE_BYTE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read variable by byte. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_VARIABLE_BIT_WHOLE": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read whole variable by bit. value(%s), len(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_READ_VARIABLE_BIT": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Read variable by bit. value(%d), len(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_DUMP_RESULT_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_dump_result(): Invalid ID!! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Reset Start!!",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_GET_LID_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_RESET_LID": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Reset LID!! LID(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_RESET_LID_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Fail to reset LID!! LID(%d), total_record(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Invalid ID!! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_RESET_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_reset(): Take write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Start! OTA type(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_GET_LID_INFO_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Fail to get LID information!! LID(%d), nvram_api_ret(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_GEN_OTA_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Start to generate OTA file. number of variable(%d), operation_mask(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_INVALID_VAL_LEN": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Invalid value length! value_len(%d), variable_size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_INVALID_LID": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): LID(%d) in OTA file is not match given LID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_INVALID_BIT_LEN": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Invalid bit_len(%d)!! current bit_value_len(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_UNKNOWN_OTA_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Unknown ota type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_TAKE_WRITE_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Take write lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Take read lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_TAKE_TLV_OTA_READ_LOCK_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Take OP-OTA read lock FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_LID_OTA_INVALID_ATTR": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): ERROR!! OTA attribute is wrong! LID(%d), attribute(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_CAN_NOT_FIND_TAG": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Can not find this tag! (%s)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_INVALID_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Invalid ID! ID(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_FILE_OVERSIZE": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): file size(%d) is larger than allocated buffer size(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_ENCRYPTION_FAIL": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): OTA file encryption FAIL!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_GEN_TLVOTA_START": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Start to generate OP-OTA file. number of variable(%d), operation_mask(%d), tag type(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_GEN_TLVOTA_SBP_INFO": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Start to generate OP-OTA file. sbp_id(%d), mcc(%s), mnc(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_GENERATE_OTA_FILE_GEN_TLVOTA_INVALID_TAG_TYPE": {
+ "format": "[MCF UTFWK] mcf_utfwk_generate_gid_ota_file(): Invalid tag type(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_SPILT_TAG_UNKNOWN_SBP_ID": {
+ "format": "[MCF UTFWK] mcf_utfwk_spilt_tag(): Unknown sbp_id!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_CHECK_TAG_ENTRY_INVALID_PARA": {
+ "format": "[MCF UTFWK] mcf_utfwk_check_tag_entry(): Invalid parameters!! pItem(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_FREE_BUFFER_INVALID_PARA": {
+ "format": "[MCF UTFWK] mcf_utfwk_free_buffer(): Invalid parameters!! pMcf(%x), id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_UTFWK_FREE_BUFFER_WITH_LOCK_INVALID_PARA": {
+ "format": "[MCF UTFWK] mcf_utfwk_free_buffer_with_lock(): Invalid parameters!! pMcf(%x), id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_START": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: Start",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_MCF_CORE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: MCF is running on Core(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_LOCK_CORE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: Lock the Core(%d), current Core(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_UNLOCK_CORE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: Unlock the Core(%d), current Core(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_INPUT_PARAM_ERROR": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: input param error ! first(%x), second(%x), output(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_ALLOCATE_HEAD_TAIL": {
+ "format": "[MCF MERGE] allocate head(%x), tail(%x)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_ALLOCATE": {
+ "format": "[MCF MERGE] allocate(%x)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_FREE": {
+ "format": "[MCF MERGE] free(%x)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_FIRST_BUFFER_TYPE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: first buffer type(%d)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_SECOND_BUFFER_TYPE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: second buffer type(%d)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_OUTPUT_GID": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: gid(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_OUTPUT_BUFFER_OUT_OF_SIZE": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: output buffer out of size error ! filesize(%d), output buffer size(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_MERGE_OTA_BUFFER_END": {
+ "format": "[MCF MERGE] mcf_merge_ota_buffer: END",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_ONE_GID_START": {
+ "format": "[MCF MERGE] mcf_merge_one_gid: Start",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_ONE_GID_INPUT_PARAM_ERROR": {
+ "format": "[MCF MERGE] mcf_merge_one_gid: input param error ! gid buffer(%x), output(%x)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_MERG_ONE_GID_END": {
+ "format": "[MCF MERGE] mcf_merge_one_gid: END",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_MAKE_OTA_FILE_HEADER_START": {
+ "format": "[MCF MERGE] mcf_merge_make_ota_file_header: Start",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_MAKE_OTA_FILE_HEADER_END": {
+ "format": "[MCF MERGE] mcf_merge_make_ota_file_header: End",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_READ_BUFFER_TO_LINKLIST_TOTAL_ITEM": {
+ "format": "[MCF MERGE] mcf_merge_read_buffer_to_linklist: total item(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_READ_BUFFER_TO_LINKLIST_ITEM_INFO": {
+ "format": "[MCF MERGE] mcf_merge_read_buffer_to_linklist: item_num(%d) gid(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_INSERT_DATA_START": {
+ "format": "[MCF MERGE] mcf_merge_link_list_insert: start insert gid (%d)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_INSERT_CMP_RESULT": {
+ "format": "[MCF MERGE] mcf_merge_link_list_insert: compare result(%d)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_INSERT_DATA_END": {
+ "format": "[MCF MERGE] mcf_merge_link_list_insert: end insert gid",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_INSERT_NODE_INFO": {
+ "format": "[MCF MERGE] mcf_merge_insert_node: pre_node->next_node(%x), next_node->pre_node(%x), insert_node->pre_node(%x), insert_node->next_node(%x))",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_USE_CURRENT_AS_START": {
+ "format": "[MCF MERGE] mcf_merge_link_list_insert: Use current as start",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_LINK_LIST_USE_HEAD_AS_START": {
+ "format": "[MCF MERGE] mcf_merge_link_list_insert: Use head as start",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_CMP_OTA_DATA_INFO": {
+ "format": "[MCF MERGE] mcf_merge_compare_ota_data: item1: [lid(%d), rid/tag_type(%d), gid(%d)] <=> item2: [lid(%d), rid/tag_type(%d), gid(%d)]",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_MERGE_CMP_OTA_DATA_ARRAY_INFO": {
+ "format": "[MCF MERGE] mcf_merge_compare_ota_data: array compare result(%d)",
+ "traceClass": "TRACE_DEBUG"
+ }
+ },
+ {
+ "MCF_TR_ALLOC_MEM_ERROR": {
+ "format": "[MCF] mcf_malloc() : Alloc memory error",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_DUMP_IMPORTANT_INFO_OTA_FILE": {
+ "format": "[MCF] mcf_dump_important_info() : OTA file info. path_type(%d), filename(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_DUMP_IMPORTANT_INFO_TLVOTA_FILE": {
+ "format": "[MCF] mcf_dump_important_info() : TLVOTA file info. sim_id(%d), path_type(%d), filename(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_DUMP_IMPORTANT_INFO_GENERAL_TLVOTA_FILE": {
+ "format": "[MCF] mcf_dump_important_info() : General TLVOTA file info. path_type(%d), filename(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_DUMP_IMPORTANT_INFO_TAKE_READ_LOCK_FAIL": {
+ "format": "[MCF] mcf_dump_important_info() : Fail to take read lock!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_GET_TLVOTA_FILE_RESULT_START": {
+ "format": "[MCF] mcf_get_tlvota_file_result() : Start to get TLVOTA file result. ps_id(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_GET_TLVOTA_FILE_RESULT_INVALID_SIM_ID": {
+ "format": "[MCF] mcf_get_tlvota_file_result() : Invalid SIM ID!! ps_id(%d), sim_id(%d)",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_GET_TLVOTA_FILE_RESULT_RETURN_RESULT": {
+ "format": "[MCF] mcf_get_tlvota_file_result() : Get TLVOTA file result. ps_id(%d), ret(%d)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_MAKE_FILE_INFO_START": {
+ "format": "[MCF] mcf_make_file_info() : Start to make file info. path_type(%d), last_mod_time(0x%x), checksum(0x%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_START": {
+ "format": "[MCF] mcf_compare_file_info() : Start to compare file info.",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_READ_FILE_NVRAM_FAIL": {
+ "format": "[MCF] mcf_compare_file_info() : Fail to read MCF file LID(%d)!!",
+ "traceClass": "TRACE_ERROR"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_OLD_FILE_INFO": {
+ "format": "[MCF] mcf_compare_file_info() : old file: sw_version(%s), gen_time(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_NEW_FILE_INFO": {
+ "format": "[MCF] mcf_compare_file_info() : new file: sw_version(%s), gen_time(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_MD_INFO": {
+ "format": "[MCF] mcf_compare_file_info() : The same. MD: sw_version(%s), gen_time(%s)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_FILE_CHECKSUM": {
+ "format": "[MCF] mcf_compare_file_info() : old file checksum(0x%x), new file checksum(0x%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_FILE_LAST_MOD_TIME": {
+ "format": "[MCF] mcf_compare_file_info() : old file last_mod_time(0x%x), new file last_mod_time(0x%x)",
+ "traceClass": "TRACE_INFO"
+ }
+ },
+ {
+ "MCF_TR_COMPARE_FILE_INFO_FILE_NOT_THE_SAME": {
+ "format": "[MCF] mcf_compare_file_info() : File is not the same, need to update",
+ "traceClass": "TRACE_INFO"
+ }
+ }
+ ],
+ "traceFamily": "PS",
+ "userModule": "MOD_MCF"
+}
\ No newline at end of file
diff --git a/mcu/service/mcf/include/mcf_ut.h b/mcu/service/mcf/include/mcf_ut.h
new file mode 100644
index 0000000..b06a669
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_ut.h
@@ -0,0 +1,144 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2018
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ * Filename:
+ * ---------
+ * mcf_ut.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * MD Configuration Framework unit test defines and helper macros.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *==============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *==============================================================================
+ *******************************************************************************/
+#ifndef __INC_MCF_UT_H
+#define __INC_MCF_UT_H
+
+#if !defined(ATEST_SYS_MCF) && !defined(__MCF_UT_FRAMEWORK_SUPPORT__)
+ #define _STATIC static
+ #define MCF_UT_DUMMY_ASSERT ASSERT
+#else
+ #define MCF_UT_SW_VERNO "LR12A.R3.MP.W18.20.LTE.P1"
+ #define MCF_UT_GEN_TIME "2018/06/06 16:09"
+ #define SBP_NULL_TAG "NA_NA_NA"
+ #define SBP_PARTIAL_TAG "12_NA_NA"
+ #define SBP_PARTIAL_TAG_WITH_MCC "12_33_NA"
+ #define SBP_PARTIAL_TAG_NO_SBPID "NA_33_21"
+ #define SBP_FULL_TAG "12_33_21"
+ #define SBP_TAG_SBPID 12
+ #define SBP_TAG_MCC "33"
+ #define SBP_TAG_MNC "21"
+#if defined(__MD93__)
+ #define MCF_UT_DB_FOLDER_PATH "common\\service\\mcf\\mcf_modis_db"
+#else
+ #define MCF_UT_DB_FOLDER_PATH "service\\mcf\\mcf_modis_db"
+#endif
+
+ #define _STATIC
+ #define MCF_UT_DUMMY_ASSERT(...)
+ #define FS_CreateDir(...) 0
+ #define FS_GetAttributes(...) 0
+ #define FS_GetFileDetail(...) 0
+ #define FS_Delete(...) 0
+#endif /* ATEST_SYS_MCF */
+
+#endif /* __INC_MCF_UT_H */
+
diff --git a/mcu/service/mcf/include/mcf_util.h b/mcu/service/mcf/include/mcf_util.h
new file mode 100644
index 0000000..8cb3d08
--- /dev/null
+++ b/mcu/service/mcf/include/mcf_util.h
@@ -0,0 +1,302 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2018
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ * Filename:
+ * ---------
+ * mcf_defs.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * MD Configuration Framework internal configuration and data structure definition.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *==============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *==============================================================================
+ *******************************************************************************/
+#ifndef __INC_MCF_UTIL_H
+#define __INC_MCF_UTIL_H
+
+#include "kal_public_api.h"
+#include "em_l4_common_public_struct.h"
+#include "mcf_nvram_editor.h"
+#include "us_timer.h"
+#include "mcf_db.h"
+
+/*------------------------------------------------------------------------------
+ * Configuration.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Helper Macro.
+ *----------------------------------------------------------------------------*/
+#define mcf_get_instance() &mcf_inst_g
+#define MCF_GEN_BIT_MASK(_len) (pow(2, _len) - 1)
+
+/* Define time function */
+#if defined(__MTK_TARGET__)
+ #define GET_CURRENT_TIME ust_get_current_time
+ #define CALCULATE_LETENCY_DURATION ust_us_duration
+#else // MODIS
+ #define GET_CURRENT_TIME(...) 0
+ #define CALCULATE_LETENCY_DURATION(...) 0
+#endif
+
+#define MCF_ADDR_LINE_SIZE_MASK 0x00000003
+#define MCF_READ_ADDR_GET_ALIGN(_o, _alo) \
+{ \
+ _alo = (kal_uint32)(_o); \
+ if(_alo&MCF_ADDR_LINE_SIZE_MASK) { \
+ _alo = (kal_uint32)(_o)&~MCF_ADDR_LINE_SIZE_MASK; \
+ } \
+}
+
+/*------------------------------------------------------------------------------
+ * Constant definition.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Internal data structure defintion.
+ *----------------------------------------------------------------------------*/
+
+/*------------------------------------------------------------------------------
+ * Global variables.
+ *----------------------------------------------------------------------------*/
+extern mcf_t mcf_inst_g;
+extern event_scheduler *mcf_timer_es_g;
+extern eventid mcf_timer_eventid_g;
+extern mcf_t *mcf_utfwk_inst_g;
+extern mcf_common_t com_Mcf;
+extern kal_enhmutexid mcf_utfwk_enhmutex_g;
+extern mcf_file_info_t new_file_info;
+extern mcf_file_info_t old_file_info;
+/*------------------------------------------------------------------------------
+ * Function prototype.
+ *----------------------------------------------------------------------------*/
+#if !defined(__HIF_CCCI_SUPPORT__) || !defined(__MTK_TARGET__)
+ #if !defined(ATEST_SYS_MCF)
+ #define MCF_FS_CMPT_Read MCF_Win_FS_CMPT_Read
+ #else
+ #define MCF_FS_CMPT_Read MCF_dummy_FS_CMPT_Read
+ #endif
+#else
+ #define MCF_FS_CMPT_Read FS_CMPT_Read
+#endif
+
+#if !defined(__MCF_COMBINE_FILE_SUPPORT__)
+ #define MCF_LAST_MODIFIED_LID nv_int_info.last_mod_lid.lid[i]
+#else
+ #define MCF_LAST_MODIFIED_LID nv_int_info.last_mod_lid.lid_conf[i].lid
+#endif
+
+void mcf_create_custom_folder(mcf_t *pMcf);
+mcf_ota_result_e mcf_read_ota_file(kal_bool is_booting, kal_char *req_fs_root_path, kal_char *req_file_path_name, l4c_mcf_path_type_enum *apply_path_type, kal_char *apply_filename, mcf_t *pMcf);
+mcf_ota_result_e mcf_read_tlvota_file(kal_bool is_booting, kal_uint8 sim_id, kal_char *req_fs_root_path, kal_char *req_file_path_name, l4c_mcf_path_type_enum *apply_path_type, kal_char *apply_filename, mcf_t *pMcf);
+mcf_ota_result_e mcf_read_general_tlvota_file(kal_bool is_booting, kal_char *req_fs_root_path, kal_char *req_file_path_name, l4c_mcf_path_type_enum *apply_path_type, kal_char *apply_filename, mcf_t *pMcf);
+mcf_ota_result_e mcf_read_ini_file(kal_char *req_fs_root_path, kal_char *req_file_path_name, l4c_mcf_path_type_enum *apply_path_type, kal_char *apply_filename, mcf_t *pMcf);
+kal_bool mcf_find_ini_item(kal_char *buff, kal_char *item, kal_char *value, mcf_t *pMcf);
+kal_bool mcf_find_ini_sbp_id(kal_char *tag_str, kal_uint32 *sbp_id, kal_uint16 *sbp_id_num, kal_bool *general);
+kal_bool mcf_compose_ini_item(kal_char *orig_buff, kal_char *new_buff, kal_char *item, kal_char *orig_value, kal_char *value);
+void mcf_dump_data(kal_bool is_booting, void *p_data, kal_uint32 len);
+void mcf_write_boot_trace(kal_uint32 trace_enum, ...);
+void mcf_dump_boot_trace(void);
+mcf_ota_result_e mcf_write_buffer(kal_char *folder_path, kal_char *file_name, kal_uint8 *buffer, kal_uint32 total_size);
+mcf_ota_result_e mcf_get_file_last_mod_time(kal_char *apply_filename, l4c_mcf_path_type_enum apply_path_type, kal_uint64 *last_mod_time);
+kal_bool mcf_find_tag_offset(kal_uint32 lid_num, char *tag_name, kal_uint16 *byte_offset, kal_uint16 *bit_offset, kal_uint32 *size, MCF_DB_STRUCT_VARIABLE const **var_ptr, mcf_tag_info_struct *tag_ptr);
+kal_bool mcf_find_gid_offset(kal_uint32 gid, char *array_idx_string, kal_uint16 *lid_num, kal_uint16 *byte_offset, kal_uint16 *bit_offset, kal_uint32 *size, kal_bool *is_bit);
+kal_uint16 mcf_find_gid_return_lid_num(kal_uint32 gid);
+kal_uint32 mcf_calc_check_sum(kal_uint32 *ptr, kal_uint32 len);
+kal_uint32 mcf_check_check_sum(kal_uint32 *ptr, kal_uint32 len);
+kal_bool mcf_encrypt_128bit(char *password, char *content, kal_uint32 content_length);
+kal_bool mcf_decrypt_128bit(char *password, char *content, kal_uint32 content_length);
+kal_bool mcf_encrypt_256bit(char *password, char *content, kal_uint32 content_length);
+kal_bool mcf_decrypt_256bit(char *password, char *content, kal_uint32 content_length);
+void mcf_remove_spaces_and_carrier_return(kal_char* src);
+void mcf_toupper(kal_char* src);
+kal_int32 mcf_atoi(const void *src);
+
+kal_int16 mcf_binary_search_lid(kal_uint16 find_lid, kal_uint16 *lid_arr, kal_uint16 lid_size, kal_uint16 *new_pos);
+kal_bool mcf_insert_lid(kal_uint16 new_lid, kal_uint16 *lid_arr, kal_uint16 lid_size, kal_uint16 new_pos);
+#ifdef __MCF_COMBINE_FILE_SUPPORT__
+kal_int16 mcf_binary_search_lid_struct(kal_uint16 find_lid, nvram_mcf_lid_config_struct *lid_conf, kal_uint16 lid_size, kal_uint16 *new_pos);
+kal_bool mcf_insert_lid_struct(kal_uint16 new_lid, nvram_mcf_lid_config_struct *lid_conf, kal_uint16 lid_size, kal_uint16 new_pos, kal_bool not_reset, kal_bool set_combined);
+kal_bool mcf_clear_last_modified_lid(nvram_mcf_lid_config_struct *lid_conf, kal_uint16 *lid_size);
+#endif
+kal_int8* mcf_bytes_to_hex(const void *bytes, kal_int32 length, kal_bool upperCase, void *hex);
+kal_int8* mcf_hex_to_bytes(const void *hex, kal_int32 *length, void *bytes);
+kal_bool mcf_hex_str_reverse(kal_char *str, kal_uint32 length);
+void mcf_replace_char(kal_char* src, kal_char old_ch, kal_char new_ch);
+kal_bool mcf_merge_ota_buffer(void *first_buffer, void *second_buffer, void *output_buffer, kal_uint32 output_buffer_size);
+kal_bool mcf_merge_one_gid(void *new_gid, mcf_ota_type_enum type, void *output_buffer, kal_uint32 output_buffer_size, kal_uint32 operation_mask);
+void mcf_mem_init(void);
+void *mcf_malloc(unsigned int size);
+void mcf_free(void *ptr);
+kal_bool mcf_verify_digest(kal_uint32 digest_tag, mcf_tool_file_info_t *ota_file, mcf_digest *sign);
+void mcf_dump_important_info(void);
+void mcf_snprintf(kal_char * str, size_t num, const char * fmt, ...);
+void mcf_make_file_info(mcf_file_info_t *file_info, kal_uint8 path_type, kal_char *name, kal_char *sw_version, kal_uint8 sw_version_len, kal_char *gen_time, kal_uint8 gen_time_len, kal_uint64 last_mod_time, kal_uint32 checksum);
+kal_bool mcf_compare_file_info(mcf_file_info_t *old_file, mcf_file_info_t *new_file);
+
+#endif /* __INC_MCF_DEFS_H */
+