1.log优化
This commit is contained in:
parent
6c15c3403d
commit
31ca6a2534
|
@ -1750,7 +1750,7 @@ BOOL sf_check_auto_thumb_file(VOID)
|
||||||
UINT8 SDSendFalg = 0;
|
UINT8 SDSendFalg = 0;
|
||||||
UINT8 EmmcSendFalg = 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();
|
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
||||||
SF_SRCFILE_ATTR_S* fileCfg = sf_file_thumb_cfg_get();
|
SF_SRCFILE_ATTR_S* fileCfg = sf_file_thumb_cfg_get();
|
||||||
SendFileTotal = 0;
|
SendFileTotal = 0;
|
||||||
|
|
|
@ -123,7 +123,7 @@ BOOL sf_check_ota(void)
|
||||||
return ret;
|
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();
|
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) {
|
if (nodeoffset < 0) {
|
||||||
MLOGE("failed to offset for %s = %d \n", fdt_path, nodeoffset);
|
MLOGE("failed to offset for %s = %d \n", fdt_path, nodeoffset);
|
||||||
return -1;
|
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);
|
nodep = fdt_getprop(p_fdt, nodeoffset, "reg", &len);
|
||||||
if (len == 0 || nodep == NULL) {
|
if (len == 0 || nodep == NULL) {
|
||||||
MLOGE("failed to access reg.\n");
|
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;
|
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)) {
|
if ((ret == 0) && (sizeof(UIMenuStoreInfo) < partition_size)) {
|
||||||
|
|
||||||
char sys_mtd_dev_path[128] = {'\0'};
|
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);
|
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)) {
|
if ((ret == 0) && (sizeof(UIMenuStoreInfo) < partition_size)) {
|
||||||
char sys_mtd_dev_path[128] = {'\0'};
|
char sys_mtd_dev_path[128] = {'\0'};
|
||||||
ret = find_sys_mtd_device(sys_mtd_dev_path, sizeof(sys_mtd_dev_path));
|
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);
|
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)) {
|
if ((ret == 0) && (sizeof(currentInfo) < partition_size)) {
|
||||||
char sys_mtd_dev_path[128] = {'\0'};
|
char sys_mtd_dev_path[128] = {'\0'};
|
||||||
ret = find_sys_mtd_device(sys_mtd_dev_path, sizeof(sys_mtd_dev_path));
|
ret = find_sys_mtd_device(sys_mtd_dev_path, sizeof(sys_mtd_dev_path));
|
||||||
|
|
|
@ -54,7 +54,7 @@ void sf_strg_dev_uninit(void)
|
||||||
|
|
||||||
void sf_strg_dev_register(SINT32 dev_id, SINT32 mounted)
|
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)
|
if(sf_strg_dev != NULL)
|
||||||
{
|
{
|
||||||
sf_strg_dev->dev_type = dev_id;
|
sf_strg_dev->dev_type = dev_id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user