PackageFileHeapAccessorBase: Fix error output
This commit is contained in:
@@ -237,8 +237,8 @@ PackageFileHeapAccessorBase::ReadFileData(uint64 offset, void* buffer,
|
|||||||
{
|
{
|
||||||
ssize_t bytesRead = pread(fFD, buffer, size, fHeapOffset + (off_t)offset);
|
ssize_t bytesRead = pread(fFD, buffer, size, fHeapOffset + (off_t)offset);
|
||||||
if (bytesRead < 0) {
|
if (bytesRead < 0) {
|
||||||
fErrorOutput->PrintError("ReadFileData(%" B_PRIu64 "%p, %zu) failed to "
|
fErrorOutput->PrintError("ReadFileData(%" B_PRIu64 ", %p, %zu) failed "
|
||||||
"read data: %s\n", offset, buffer, size, strerror(errno));
|
"to read data: %s\n", offset, buffer, size, strerror(errno));
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
if ((size_t)bytesRead != size) {
|
if ((size_t)bytesRead != size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user