Modify Log type for error case when working directory is changed.
authorKim Gunsoo <gunsoo83.kim@samsung.com>
Wed, 14 Oct 2015 09:19:20 +0000 (18:19 +0900)
committerKim Gunsoo <gunsoo83.kim@samsung.com>
Wed, 14 Oct 2015 09:27:26 +0000 (18:27 +0900)
- the log tag is changed from INFO to ERROR in the error condition.

Change-Id: I3db09165f604019605fa44a57b810f13f9e53c62
Signed-off-by: Kim Gunsoo <gunsoo83.kim@samsung.com>
src/sdb.c

index ba44497216b22ea866397c0d98cbcd86e1946ce3..272da740a1b24a70af5aab08ace75e2bcf9511d0 100755 (executable)
--- 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);