Lines Matching refs:g_pLogObject

19 CRKLog *g_pLogObject=NULL;  variable
231 if (g_pLogObject) in parse_config_file()
232 g_pLogObject->Record("%s failed, err=%d, can't open file: %s\r\n", __func__, errno, pConfigFile); in parse_config_file()
249 if (g_pLogObject) in parse_config_file()
250g_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno, iRead, iFileSize… in parse_config_file()
421 if (g_pLogObject) in parse_parameter_file()
422 g_pLogObject->Record("%s failed, err=%d, can't open file: %s\r\n", __func__, errno, pParamFile); in parse_parameter_file()
438 if (g_pLogObject) in parse_parameter_file()
439g_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno,iRead,iFileSize); in parse_parameter_file()
457 if (g_pLogObject) in is_sparse_image()
458 g_pLogObject->Record("%s failed, err=%d, can't open file: %s\r\n", __func__, errno, szImage); in is_sparse_image()
463 if (g_pLogObject) in is_sparse_image()
464g_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno, uiRead, sizeof(h… in is_sparse_image()
483 if (g_pLogObject) in is_ubifs_image()
484 g_pLogObject->Record("%s failed, err=%d, can't open file: %s\r\n", __func__, errno, szImage); in is_ubifs_image()
489 if (g_pLogObject) in is_ubifs_image()
490g_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno, uiRead, sizeof(m… in is_ubifs_image()
629 if (g_pLogObject) in load_gpt_buffer()
630 g_pLogObject->Record("%s failed, err=%d, can't open file: %s\r\n", __func__, errno, pParamFile); in load_gpt_buffer()
638 if (g_pLogObject) in load_gpt_buffer()
639 g_pLogObject->Record("%s failed, wrong size file: %s\r\n", __func__, pParamFile); in load_gpt_buffer()
647 if (g_pLogObject) in load_gpt_buffer()
648g_pLogObject->Record("%s failed,read master gpt err=%d, read=%d, total=%d\r\n", __func__, errno,iR… in load_gpt_buffer()
654 if (g_pLogObject) in load_gpt_buffer()
655g_pLogObject->Record("%s failed,read backup gpt err=%d, read=%d, total=%d\r\n", __func__, errno,iR… in load_gpt_buffer()
833 if (g_pLogObject) in MakeParamBuffer()
834 g_pLogObject->Record("MakeParamBuffer failed,err=%d,can't open file: %s\r\n", errno, pParamFile); in MakeParamBuffer()
855 if (g_pLogObject) in MakeParamBuffer()
856g_pLogObject->Record("MakeParamBuffer failed,err=%d,read=%d,total=%d\r\n", errno, iRead, iFileSize… in MakeParamBuffer()
878 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in write_parameter()
933 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in write_gpt()
1785 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in download_boot()
1809 pDevice->SetObject(pImage, pComm, g_pLogObject); in download_boot()
1860 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in upgrade_loader()
1872 if (g_pLogObject) { in upgrade_loader()
1873 g_pLogObject->Record("ERROR: %s --> Get LoaderCode Entry failed", __func__); in upgrade_loader()
1879 if (g_pLogObject) { in upgrade_loader()
1880 g_pLogObject->Record("ERROR: %s --> Get LoaderCode Entry Size failed", __func__); in upgrade_loader()
1888 if (g_pLogObject) { in upgrade_loader()
1889 g_pLogObject->Record("ERROR: %s --> Get LoaderCode Data failed", __func__); in upgrade_loader()
1896 if (g_pLogObject) { in upgrade_loader()
1897 g_pLogObject->Record("ERROR: %s --> Get LoaderData Entry failed", __func__); in upgrade_loader()
1905 if (g_pLogObject) { in upgrade_loader()
1906 g_pLogObject->Record("ERROR: %s --> Get LoaderData Entry Size failed", __func__); in upgrade_loader()
1914 if (g_pLogObject) { in upgrade_loader()
1915 g_pLogObject->Record("ERROR: %s --> Get LoaderData Data failed", __func__); in upgrade_loader()
1924 if (g_pLogObject) { in upgrade_loader()
1925 g_pLogObject->Record("ERROR: %s --> Get LoaderHead Entry Size failed", __func__); in upgrade_loader()
1933 if (g_pLogObject) { in upgrade_loader()
1934 g_pLogObject->Record("ERROR: %s --> Get LoaderHead Data failed", __func__); in upgrade_loader()
1942 if (g_pLogObject) in upgrade_loader()
1943 g_pLogObject->Record("ERROR: %s --> read capability failed", __func__); in upgrade_loader()
1947 if (g_pLogObject) in upgrade_loader()
1948 g_pLogObject->Record("ERROR: %s --> device did not support to upgrade the loader", __func__); in upgrade_loader()
2045 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in print_gpt()
2060 if (g_pLogObject) in print_gpt()
2061 g_pLogObject->Record("Error: read gpt failed, err=%d", iRet); in print_gpt()
2097 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in print_parameter()
2112 if (g_pLogObject) in print_parameter()
2113 g_pLogObject->Record("Error: read parameter failed, err=%d", iRet); in print_parameter()
2122 if (g_pLogObject) in print_parameter()
2123 g_pLogObject->Record("Error: parse parameter failed"); in print_parameter()
2153 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in erase_flash()
2177 pDevice->SetObject(pImage, pComm, g_pLogObject); in erase_flash()
2219 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in test_device()
2223 if (g_pLogObject) in test_device()
2224 g_pLogObject->Record("Error: RKU_TestDeviceReady failed, err=%d", iRet); in test_device()
2246 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in reset_device()
2250 if (g_pLogObject) in reset_device()
2251 g_pLogObject->Record("Error: RKU_ResetDevice failed, err=%d", iRet); in reset_device()
2274 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in change_storage()
2278 if (g_pLogObject) in change_storage()
2279 g_pLogObject->Record("Error: RKU_ChangeStorage failed, err=%d", iRet); in change_storage()
2289 if (g_pLogObject) in change_storage()
2290 g_pLogObject->Record("Error: RKU_ReadStorage failed, err=%d", iRet); in change_storage()
2321 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_flash_id()
2326 if (g_pLogObject) in read_flash_id()
2327 g_pLogObject->Record("Error: RKU_ReadFlashID failed, err=%d", iRet); in read_flash_id()
2350 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_flash_info()
2356 if (g_pLogObject) in read_flash_info()
2357 g_pLogObject->Record("Error: RKU_ReadFlashInfo failed, err=%d", iRet); in read_flash_info()
2398 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_chip_info()
2403 if (g_pLogObject) in read_chip_info()
2404 g_pLogObject->Record("Error: RKU_ReadChipInfo failed, err=%d", iRet); in read_chip_info()
2408 g_pLogObject->PrintBuffer(strChipInfo, chipInfo, 16, 16); in read_chip_info()
2429 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_capability()
2436 if (g_pLogObject) in read_capability()
2437 g_pLogObject->Record("Error:read_capability failed,err=%d", iRet); in read_capability()
2499 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_param()
2507 if (g_pLogObject) in read_param()
2508 g_pLogObject->Record("Error: read parameter failed, err=%d", iRet); in read_param()
2531 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_gpt()
2539 if (g_pLogObject) in read_gpt()
2540 g_pLogObject->Record("Error: read gpt failed, err=%d", iRet); in read_gpt()
2564 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in read_lba()
2602 if (g_pLogObject) in read_lba()
2603 g_pLogObject->Record("Error: RKU_ReadLBA failed, err=%d", iRet); in read_lba()
2635 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in erase_ubi_block()
2644 if (g_pLogObject) in erase_ubi_block()
2646 g_pLogObject->Record("Error:EraseUBIBlock-->RKU_ReadFlashID failed,RetCode(%d)",iRet); in erase_ubi_block()
2661 if (g_pLogObject) in erase_ubi_block()
2662 g_pLogObject->Record("Error:EraseUBIBlock-->RKU_ReadFlashInfo err=%d", iRet); in erase_ubi_block()
2681 if (g_pLogObject) in erase_ubi_block()
2683 g_pLogObject->Record("Error:EraseUBIBlock-->RKU_EraseBlock failed,RetCode(%d)",iRet); in erase_ubi_block()
2718 if (g_pLogObject) in erase_partition()
2720 g_pLogObject->Record("ERROR:erase_partition failed,err=%d",iRet); in erase_partition()
2734 if (g_pLogObject) in EatSparseChunk()
2736 g_pLogObject->Record("Error:EatSparseChunk failed,err=%d", errno); in EatSparseChunk()
2748 if (g_pLogObject) in EatSparseData()
2750 g_pLogObject->Record("Error:EatSparseData failed,err=%d",errno); in EatSparseData()
2772 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in write_sparse_lba()
2784 if (g_pLogObject) in write_sparse_lba()
2786g_pLogObject->Record("ERROR:%s-->read sparse header failed,file=%s,err=%d", __func__, szFile, errn… in write_sparse_lba()
2827 if (g_pLogObject) { in write_sparse_lba()
2828g_pLogObject->Record("ERROR:%s-->RKU_WriteLBA failed,Written(%d),RetCode(%d)", __func__, iTotalWr… in write_sparse_lba()
2868 if (g_pLogObject) { in write_sparse_lba()
2869g_pLogObject->Record("ERROR:%s-->RKU_WriteLBA failed,Written(%d),RetCode(%d)" ,__func__, iTotalWri… in write_sparse_lba()
2938 pComm = new CRKUsbComm(dev, g_pLogObject, bRet); in write_lba()
2969 if (g_pLogObject) in write_lba()
2970 g_pLogObject->Record("Error: RKU_WriteLBA failed, err=%d", iRet); in write_lba()
3392 g_pLogObject = new CRKLog(strLogDir.c_str(), "log",true); in main()
3395 if (g_pLogObject) { in main()
3396 g_pLogObject->Record("Error: failed to stat config.ini, err=%d", errno); in main()
3404 if (g_pLogObject) { in main()
3405 g_pLogObject->Record("Error: libusb_init failed, err=%d", ret); in main()
3406 delete g_pLogObject; in main()
3413 if (g_pLogObject) { in main()
3414 g_pLogObject->Record("Error: failed to create object for searching device"); in main()
3415 delete g_pLogObject; in main()
3428 if (g_pLogObject) in main()
3429 delete g_pLogObject; in main()