Added TRACE_PARANOIA, which differs from cdparanoia's NOISY compile-time

flag in that it's designed to help someone understand how cdparanoia works,
rather than troubleshoot.  Setting TRACE_PARANOIA to 1 traces stage 1,
2 trace stage 2, and 3 traces both (and is extremely verbose).

Additionally, committed a tentative bugfix to paranoia itself, which was
causing the libcdio test case to break.  If it introduces unexpected
behavior, it should be backed out.  So far it seems to fix all test cases.
This commit is contained in:
pjcreath
2005-10-24 19:42:15 +00:00
parent b0306c811e
commit 723c5d5dae
3 changed files with 188 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: p_block.c,v 1.8 2005/09/20 00:42:14 rocky Exp $
$Id: p_block.c,v 1.9 2005/10/24 19:42:15 pjcreath Exp $
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 1998 Monty xiphmont@mit.edu
@@ -188,6 +188,13 @@ new_v_fragment(cdrom_paranoia_t *p, c_block_t *one,
b->size=end-begin;
b->lastsector=last;
#if TRACE_PARANOIA
fprintf(stderr, "- Verified [%ld-%ld] (0x%04X...0x%04X)%s\n",
begin, end,
b->vector[0]&0xFFFF, b->vector[b->size-1]&0xFFFF,
last ? " *" : "");
#endif
return(b);
}