From 8e4985801a73546e036021a9b586676640f18579 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 23 Jul 2015 12:33:29 +0200 Subject: [PATCH] Improved buffer size mismatch error verbosity. --- src/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.cpp b/src/io.cpp index c51c1f03..5f1b5779 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -218,7 +218,7 @@ namespace Mist { size_t curOffset = pagesByTrack[tid][curPageNum[tid]].curOffset; //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()) { - 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; }