From e5ee8cc01ed6f316c3fea7b6b421f51889c96490 Mon Sep 17 00:00:00 2001 From: liuyi Date: Tue, 25 Apr 2017 09:20:40 +0800 Subject: [PATCH] main: fix print 'failed to stat config.ini'error Signed-off-by: liuyi --- RKLog.cpp | 1 - config.ini | 19 ------------------- main.cpp | 2 +- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/RKLog.cpp b/RKLog.cpp index a23aab4..37dc62b 100644 --- a/RKLog.cpp +++ b/RKLog.cpp @@ -62,7 +62,6 @@ void CRKLog::Record(const char *lpFmt,...) /************************* �������־ ***********************/ char szBuf[1024] = ""; GET_FMT_STRING(lpFmt, szBuf); - printf("%s\n",szBuf); if ((m_enable) && (m_path.size() > 0)) { Write( szBuf); diff --git a/config.ini b/config.ini index 6451045..e69de29 100644 --- a/config.ini +++ b/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 diff --git a/main.cpp b/main.cpp index aafffa5..a83ff6e 100644 --- a/main.cpp +++ b/main.cpp @@ -2266,7 +2266,7 @@ int main(int argc, char* argv[]) strConfigFile += "/config.ini"; if (opendir(strLogDir.c_str()) == NULL) 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 (g_pLogObject) {