Improved buffer size mismatch error verbosity.
This commit is contained in:
parent
c0f9fd250f
commit
8e4985801a
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ namespace Mist {
|
||||||
size_t curOffset = pagesByTrack[tid][curPageNum[tid]].curOffset;
|
size_t curOffset = pagesByTrack[tid][curPageNum[tid]].curOffset;
|
||||||
//Do nothing when there is not enough free space on the page to add the packet.
|
//Do nothing when there is not enough free space on the page to add the packet.
|
||||||
if (pagesByTrack[tid][curPageNum[tid]].dataSize - curOffset < pack.getDataLen()) {
|
if (pagesByTrack[tid][curPageNum[tid]].dataSize - curOffset < pack.getDataLen()) {
|
||||||
INFO_MSG("Trying to buffer a packet on page %lu for track %lu~>%lu, but we have a size mismatch", curPageNum[tid], tid, mapTid);
|
FAIL_MSG("Trying to buffer a packet on page %lu for track %lu~>%lu, but we have a size mismatch. The packet is %lu bytes long, so won't fit at offset %lu on a page of %lu bytes!", curPageNum[tid], tid, mapTid, pack.getDataLen(), curOffset, pagesByTrack[tid][curPageNum[tid]].dataSize);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue