Removed debug messages for obsolete ticfiles

This commit is contained in:
Michiel Broek 2005-12-31 12:18:31 +00:00
parent 7855bacdd0
commit 3bf22605a8
2 changed files with 12 additions and 10 deletions

View File

@ -4,6 +4,7 @@ v0.83.6 17-Dec-2005
mbfido:
Removed gated SB debug logmessages.
Removed debug messages for obsolete ticfiles.
mbfile:
Fixed a crash when files.bbs had empty lines.

View File

@ -572,19 +572,20 @@ int ProcessTic(fa_list **sbl, orphans **opl)
} /* not get FILE_ID.DIZ */
/*
* Now check if other (older) ticfiles point to this file
* Now check if other (older) ticfiles point to this file,
* if found mark it to purge later.
*/
First = TRUE;
// First = TRUE;
for (topl = *opl; topl; topl = topl->next) {
if (First) {
Syslog('f', "TIC file TIC area Filename ORP CRC DEL");
Syslog('f', "------------ -------------------- ------------ --- --- ---");
First = FALSE;
}
Syslog('f', "%-12s %-20s %-12s %s %s %s", topl->TicName, topl->Area, topl->FileName,
topl->Orphaned ? "Yes" : "No ", topl->BadCRC ? "Yes" : "No ", topl->Purged ? "Yes":"No ");
// if (First) {
// Syslog('f', "TIC file TIC area Filename ORP CRC DEL");
// Syslog('f', "------------ -------------------- ------------ --- --- ---");
// First = FALSE;
// }
// Syslog('f', "%-12s %-20s %-12s %s %s %s", topl->TicName, topl->Area, topl->FileName,
// topl->Orphaned ? "Yes" : "No ", topl->BadCRC ? "Yes" : "No ", topl->Purged ? "Yes":"No ");
if ((strcmp(topl->Area, TIC.TicIn.Area) == 0) && (strcmp(topl->FileName, TIC.TicIn.File) == 0)) {
Syslog('f', "Found matching tic file %s, mark to purge this one", topl->TicName);
// Syslog('f', "Found matching obsolete tic file %s, mark to purge this one", topl->TicName);
topl->Purged = TRUE;
}
}