errno = 0;
struct dirent* pDirEnt = readdir((DIR*) __pFileFindInfo);
SysTryReturnResult(NID_IO, errno == 0, __ConvertNativeErrorToResult(errno),
- "Failed to the next directory entry. path: %s, errno: %d (%s)", pDirPath.get(), errno, strerror(errno));
+ "Failed to the next directory entry. parent: %s, errno: %d (%s)", pDirPath.get(), errno, strerror(errno));
SysTryReturnResult(NID_IO, pDirEnt != null, E_END_OF_FILE, "End of directory entries");
char entryPath[PATH_MAX] = { 0, };
struct stat64 statbuf;
int ret = stat64(entryPath, &statbuf);
- SysSecureTryReturnResult(NID_IO, ret == 0, r = __ConvertNativeErrorToResult(errno),
- "[%s] Failed to get attributes for directory entry (%s), errno: %d (%s)",
- entryPath, errno, strerror(errno));
+ SysSecureTryReturnResult(NID_IO, ret == 0, __ConvertNativeErrorToResult(errno),
+ "Failed to get attributes for directory entry (%s), errno: %d (%s)", entryPath, errno, strerror(errno));
struct tm* pTm = localtime(&statbuf.st_mtime);
SysTryReturnResult(NID_IO, pTm != null, E_SYSTEM, "Failed to call localtime() (%s).", strerror(errno));