//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
static const int _MAX_LINE_LENGTH = 4096;
-#define _MAX_OPENMODE_LENGTH 3
-
_NormalFile::_NormalFile(void)
: __pFile(NULL)
{
if (pFile == null)
{
r = __ConvertNativeErrorToResult(errno);
- SysLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).",
+ SysSecureLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).",
GetErrorMessage(r), pFilePath.get(), pOpenMode, errno, strerror(errno));
return r;
}
long fileSize = ftell(__pFile);
SysTryReturnResult(NID_IO, fileSize >= 0, E_SYSTEM, "The system I/O error occurred.");
- SysLog(NID_IO, "The length of registry file (%ls) is %ld.", __filePath.GetPointer(), fileSize);
+ SysSecureLog(NID_IO, "The length of registry file (%ls) is %ld.", __filePath.GetPointer(), fileSize);
if (fileSize == 0)
{
return E_SUCCESS;