From 31ca6a25340b1f051cf3e6909ac7d7ac6a1ff943 Mon Sep 17 00:00:00 2001 From: payton Date: Thu, 1 Feb 2024 13:55:49 +0800 Subject: [PATCH] =?UTF-8?q?1.log=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/fileMng/sf_file.c | 2 +- .../sf_app/code/source/paramMng/sf_param_common.c | 13 +++++++------ .../sf_app/code/source/storeMng/sf_storeMng.c | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/code/application/source/sf_app/code/source/fileMng/sf_file.c b/code/application/source/sf_app/code/source/fileMng/sf_file.c index a3f1cc14d..2c705c372 100755 --- a/code/application/source/sf_app/code/source/fileMng/sf_file.c +++ b/code/application/source/sf_app/code/source/fileMng/sf_file.c @@ -1750,7 +1750,7 @@ BOOL sf_check_auto_thumb_file(VOID) UINT8 SDSendFalg = 0; UINT8 EmmcSendFalg = 0; - printf("%s:%d s\n", __FUNCTION__, __LINE__); + // printf("%s:%d s\n", __FUNCTION__, __LINE__); UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); SF_SRCFILE_ATTR_S* fileCfg = sf_file_thumb_cfg_get(); SendFileTotal = 0; diff --git a/code/application/source/sf_app/code/source/paramMng/sf_param_common.c b/code/application/source/sf_app/code/source/paramMng/sf_param_common.c index 0b781c1b9..25843aa45 100755 --- a/code/application/source/sf_app/code/source/paramMng/sf_param_common.c +++ b/code/application/source/sf_app/code/source/paramMng/sf_param_common.c @@ -123,7 +123,7 @@ BOOL sf_check_ota(void) return ret; } -int sf_UIInfo_GetStrgPartitionInfo(unsigned long long *pPartOfs, unsigned long long *pPartSize, const char* fdt_path) +int sf_ui_info_get_strgpartition_info(unsigned long long *pPartOfs, unsigned long long *pPartSize, const char* fdt_path) { unsigned char *p_fdt = (unsigned char *)fdt_get_base(); @@ -141,9 +141,10 @@ int sf_UIInfo_GetStrgPartitionInfo(unsigned long long *pPartOfs, unsigned long l if (nodeoffset < 0) { MLOGE("failed to offset for %s = %d \n", fdt_path, nodeoffset); return -1; - } else { - MLOGI("offset for %s = %d \n", fdt_path, nodeoffset); } + // else { + // MLOGI("offset for %s = %d \n", fdt_path, nodeoffset); + // } nodep = fdt_getprop(p_fdt, nodeoffset, "reg", &len); if (len == 0 || nodep == NULL) { MLOGE("failed to access reg.\n"); @@ -374,7 +375,7 @@ int sf_customer_param_load(void) sectorCnt = (sizeof(UIMenuStoreInfo) / _EMBMEM_BLK_SIZE_) + (sizeof(UIMenuStoreInfo) % _EMBMEM_BLK_SIZE_)? 1 : 0; - ret = sf_UIInfo_GetStrgPartitionInfo(&partition_ofs, &partition_size, PARTITION_PATH_SYS); + ret = sf_ui_info_get_strgpartition_info(&partition_ofs, &partition_size, PARTITION_PATH_SYS); if ((ret == 0) && (sizeof(UIMenuStoreInfo) < partition_size)) { char sys_mtd_dev_path[128] = {'\0'}; @@ -903,7 +904,7 @@ void sf_Save_MenuInfo(void) sectorCnt = (sizeof(UIMenuStoreInfo) / _EMBMEM_BLK_SIZE_) + ((sizeof(UIMenuStoreInfo) % _EMBMEM_BLK_SIZE_)? 1 : 0); - ret = sf_UIInfo_GetStrgPartitionInfo(&partition_ofs, &partition_size, PARTITION_PATH_SYS); + ret = sf_ui_info_get_strgpartition_info(&partition_ofs, &partition_size, PARTITION_PATH_SYS); if ((ret == 0) && (sizeof(UIMenuStoreInfo) < partition_size)) { char sys_mtd_dev_path[128] = {'\0'}; ret = find_sys_mtd_device(sys_mtd_dev_path, sizeof(sys_mtd_dev_path)); @@ -1116,7 +1117,7 @@ SINT32 sf_customer_param_save(SF_PDT_PARAM_CFG_S *pSfCustomerPara) sectorCnt = (sizeof(currentInfo) / _EMBMEM_BLK_SIZE_) + ((sizeof(currentInfo) % _EMBMEM_BLK_SIZE_)? 1 : 0); - ret = sf_UIInfo_GetStrgPartitionInfo(&partition_ofs, &partition_size, PARTITION_PATH_SYS); + ret = sf_ui_info_get_strgpartition_info(&partition_ofs, &partition_size, PARTITION_PATH_SYS); if ((ret == 0) && (sizeof(currentInfo) < partition_size)) { char sys_mtd_dev_path[128] = {'\0'}; ret = find_sys_mtd_device(sys_mtd_dev_path, sizeof(sys_mtd_dev_path)); diff --git a/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c b/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c index 436ed8fab..8ca3165e4 100644 --- a/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c +++ b/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c @@ -54,7 +54,7 @@ void sf_strg_dev_uninit(void) void sf_strg_dev_register(SINT32 dev_id, SINT32 mounted) { - MLOGD("dev_id:%d mounted:%d\n",dev_id, mounted); + // MLOGD("dev_id:%d mounted:%d\n",dev_id, mounted); if(sf_strg_dev != NULL) { sf_strg_dev->dev_type = dev_id;