main: fix print 'failed to stat config.ini'error

Signed-off-by: liuyi <liuyi@rock-chips.com>
This commit is contained in:
liuyi 2017-04-25 09:20:40 +08:00
parent d71e8c2048
commit e5ee8cc01e
3 changed files with 1 additions and 21 deletions

View File

@ -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);

View File

@ -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

View File

@ -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) {