if (result) goto ErrorExit;
if (bufs[i]->Length != fragSize) {
- plog("ReadFragmentedBlock: cache failure (Length != fragSize)\n");
+ if (debug) {
+ plog("ReadFragmentedBlock: cache failure (Length != fragSize)\n");
+ }
result = -1;
goto ErrorExit;
}
bufEnd = buffer + file->fcbBlockSize;
if (bufs == NULL) {
- plog("WriteFragmentedBlock: NULL bufs list!\n");
+ if (debug) {
+ plog("WriteFragmentedBlock: NULL bufs list!\n");
+ }
return (-1);
}
bufs = (Buf_t **) block->blockHeader;
if (bufs == NULL) {
- plog("ReleaseFragmentedBlock: NULL buf list!\n");
+ if (debug) {
+ plog("ReleaseFragmentedBlock: NULL buf list!\n");
+ }
return (-1);
}