Update secure logs in FIO
authorSunwook Bae <sunwook45.bae@samsung.com>
Fri, 7 Jun 2013 11:35:04 +0000 (20:35 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Fri, 7 Jun 2013 11:35:04 +0000 (20:35 +0900)
Change-Id: I16e57d75c6f37bc5445f361a190c24bbe006fb38
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/io/FIo_FileUtil.cpp
src/io/FIo_NormalRegistry.cpp

index 5003495..2f00b57 100644 (file)
@@ -334,7 +334,7 @@ _FileUtil::GetAttributes(const String& filePath, FileAttributes& attribute)
        if (int ret = stat64(pFilePath.get(), &statbuf) == -1)
        {
                r = __ConvertNativeErrorToResult(errno);
-               SysLogException(NID_IO, r, "[%s] Failed to get file (%s) status.", GetErrorMessage(r), pFilePath.get());
+               SysSecureLogException(NID_IO, r, "[%s] Failed to get file (%s) status.", GetErrorMessage(r), pFilePath.get());
                return r;
        }
 
index d65d0ac..7c7452e 100644 (file)
@@ -71,7 +71,7 @@ _NormalRegistry::Construct(const String& regPath, const char* pOpenMode)
        SysTryReturnResult(NID_IO, isValidOpenMode == true, E_INVALID_ARG, "The specified openMode is invalid. (%s)", pOpenMode);
 
        result r = this->Load(regPath, pOpenMode);
-       SysTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to load the registry file (%ls).",
+       SysSecureTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to load the registry file (%ls).",
                        GetErrorMessage(r), regPath.GetPointer());
 
        if (_pBuffer && _length >= SECURE_REG_HEADER_SIZE_V1)