From 92400ab74e2871c3be59d370fa58b9b7b64de32b Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Fri, 7 Jun 2013 20:35:04 +0900 Subject: [PATCH] Update secure logs in FIO Change-Id: I16e57d75c6f37bc5445f361a190c24bbe006fb38 Signed-off-by: Sunwook Bae --- src/io/FIo_FileUtil.cpp | 2 +- src/io/FIo_NormalRegistry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/FIo_FileUtil.cpp b/src/io/FIo_FileUtil.cpp index 5003495..2f00b57 100644 --- a/src/io/FIo_FileUtil.cpp +++ b/src/io/FIo_FileUtil.cpp @@ -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; } diff --git a/src/io/FIo_NormalRegistry.cpp b/src/io/FIo_NormalRegistry.cpp index d65d0ac..7c7452e 100644 --- a/src/io/FIo_NormalRegistry.cpp +++ b/src/io/FIo_NormalRegistry.cpp @@ -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) -- 2.7.4