From: Kim Gunsoo Date: Wed, 14 Oct 2015 09:19:20 +0000 (+0900) Subject: Modify Log type for error case when working directory is changed. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d0feb7efa244059bef8cb5906483aa955dbf71c;p=sdk%2Ftools%2Fsdb.git Modify Log type for error case when working directory is changed. - the log tag is changed from INFO to ERROR in the error condition. Change-Id: I3db09165f604019605fa44a57b810f13f9e53c62 Signed-off-by: Kim Gunsoo --- diff --git a/src/sdb.c b/src/sdb.c index ba44497..272da74 100755 --- a/src/sdb.c +++ b/src/sdb.c @@ -124,17 +124,17 @@ void change_working_directory(void) dwRet = GetCurrentDirectory(MAX_PATH, currentDir); if (dwRet == 0) { - LOG_INFO("GetCurrentDirectory failed (%d)\n", GetLastError()); + LOG_ERROR("GetCurrentDirectory failed (%d)\n", GetLastError()); return; } if (dwRet > MAX_PATH) { - LOG_INFO("Buffer too small; need %d charactors\n", dwRet); + LOG_ERROR("Buffer too small; need %d charactors\n", dwRet); return; } LOG_INFO("Current directory : %s\n", currentDir); if (!GetModuleFileName(NULL, modulePath, sizeof(modulePath))) { - LOG_INFO("GetModuleFileName failed (%d)\n", GetLastError()); + LOG_ERROR("GetModuleFileName failed (%d)\n", GetLastError()); return; } LOG_INFO("Module path : %s\n", modulePath); @@ -145,7 +145,7 @@ void change_working_directory(void) } if (!SetCurrentDirectory(modulePath)) { - LOG_INFO("SetCurrentDirectory failed (%d)\n", GetLastError()); + LOG_ERROR("SetCurrentDirectory failed (%d)\n", GetLastError()); return; } LOG_INFO("Set current directory to : %s\n", modulePath);