Slightly improved debug output.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16288 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-07 16:55:06 +00:00
parent 9837f25ec6
commit d31d9974ba

View File

@ -598,7 +598,7 @@ write_chunk_to_cache(file_cache_ref *ref, off_t offset, size_t size,
status = pages_io(ref, offset, &readVec, 1, &bytesRead, false);
// ToDo: handle errors for real!
if (status < B_OK)
panic("pages_io() failed!\n");
panic("1. pages_io() failed: %s!\n", strerror(status));
}
addr_t lastPageOffset = (pageOffset + bufferSize) & (B_PAGE_SIZE - 1);
@ -620,7 +620,7 @@ write_chunk_to_cache(file_cache_ref *ref, off_t offset, size_t size,
&bytesRead, false);
// ToDo: handle errors for real!
if (status < B_OK)
panic("pages_io() failed!\n");
panic("pages_io() failed: %s!\n", strerror(status));
}
}