mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2024-11-22 14:06:47 +01:00
main: fix print 'failed to stat config.ini'error
Signed-off-by: liuyi <liuyi@rock-chips.com>
This commit is contained in:
parent
d71e8c2048
commit
e5ee8cc01e
@ -62,7 +62,6 @@ void CRKLog::Record(const char *lpFmt,...)
|
|||||||
/************************* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ ***********************/
|
/************************* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ ***********************/
|
||||||
char szBuf[1024] = "";
|
char szBuf[1024] = "";
|
||||||
GET_FMT_STRING(lpFmt, szBuf);
|
GET_FMT_STRING(lpFmt, szBuf);
|
||||||
printf("%s\n",szBuf);
|
|
||||||
if ((m_enable) && (m_path.size() > 0))
|
if ((m_enable) && (m_path.size() > 0))
|
||||||
{
|
{
|
||||||
Write( szBuf);
|
Write( szBuf);
|
||||||
|
19
config.ini
19
config.ini
@ -1,19 +0,0 @@
|
|||||||
[CHIP_NAME]
|
|
||||||
NAME=RK320A
|
|
||||||
[VERSION]
|
|
||||||
MAJOR=2
|
|
||||||
MINOR=30
|
|
||||||
[CODE471_OPTION]
|
|
||||||
NUM=1
|
|
||||||
Path1=rk3288_ddr_400MHZ_v1.01.bin
|
|
||||||
[CODE472_OPTION]
|
|
||||||
NUM=1
|
|
||||||
Path1=rk3288_usbplug_v2.32.bin
|
|
||||||
[LOADER_OPTION]
|
|
||||||
NUM=2
|
|
||||||
LOADER1=FlashData
|
|
||||||
LOADER2=FlashBoot
|
|
||||||
FlashData=rk3288_ddr_400MHZ_v1.01.bin
|
|
||||||
FlashBoot=u-boot.bin
|
|
||||||
[OUTPUT]
|
|
||||||
PATH=rk3288_bootloader_test.bin
|
|
2
main.cpp
2
main.cpp
@ -2266,7 +2266,7 @@ int main(int argc, char* argv[])
|
|||||||
strConfigFile += "/config.ini";
|
strConfigFile += "/config.ini";
|
||||||
if (opendir(strLogDir.c_str()) == NULL)
|
if (opendir(strLogDir.c_str()) == NULL)
|
||||||
mkdir(strLogDir.c_str(), S_IRWXU | S_IRWXG | S_IROTH);
|
mkdir(strLogDir.c_str(), S_IRWXU | S_IRWXG | S_IROTH);
|
||||||
g_pLogObject = new CRKLog(strLogDir.c_str(), "log");
|
g_pLogObject = new CRKLog(strLogDir.c_str(), "log",true);
|
||||||
|
|
||||||
if(stat(strConfigFile.c_str(), &statBuf) < 0) {
|
if(stat(strConfigFile.c_str(), &statBuf) < 0) {
|
||||||
if (g_pLogObject) {
|
if (g_pLogObject) {
|
||||||
|
Loading…
Reference in New Issue
Block a user