}
-bool mmi_debug_info_write_to_file(char * info_buf)
+bool mmi_debug_info_write_to_file(char * path, char * info_buf, uint32_t info_size)
{
lv_fs_file_t file_p;
lv_fs_res_t res;
uint32_t bytes_write = 0;
- uint32_t info_size = strlen(info_buf);
+ //uint32_t info_size = strlen(info_buf);
- res = lv_fs_open(&file_p, MMI_DEBUG_LOG_FILE, LV_FS_MODE_WR | LV_FS_MODE_APPEND);
+ if(NULL != path)
+ res = lv_fs_open(&file_p, path, LV_FS_MODE_WR | LV_FS_MODE_APPEND);
+ else
+ res = lv_fs_open(&file_p, MMI_DEBUG_LOG_FILE, LV_FS_MODE_WR | LV_FS_MODE_APPEND);
+
if(LV_FS_RES_OK != res)
{
printf("[@CHENG_DEBUG][%s][%d]: errno=%d\n", __FUNCTION__, __LINE__, res);
bool mmi_unicode_hex_str_to_utf8_str(unsigned char * src, uint32_t src_len, unsigned char * dest, uint32_t * dest_len);
-bool mmi_debug_info_write_to_file(char * info_buf);
+bool mmi_debug_info_write_to_file(char * path, char * info_buf, uint32_t info_size);
#endif