Installed a simple address logger in burn_read_data
This commit is contained in:
parent
53d97eee77
commit
d5be6efce0
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2008.02.06.182222"
|
||||
#define Cdrskin_timestamP "2008.02.06.230041"
|
||||
|
@ -325,6 +325,19 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
|
||||
char msg[81], *wpt;
|
||||
struct buffer buf;
|
||||
|
||||
/*
|
||||
#define Libburn_read_data_adr_logginG 1
|
||||
*/
|
||||
#ifdef Libburn_read_data_adr_logginG
|
||||
static FILE *log_fp= NULL;
|
||||
|
||||
if(log_fp == NULL)
|
||||
log_fp = fopen("/tmp/burn_read_data_log", "a");
|
||||
if(log_fp!=NULL)
|
||||
fprintf(log_fp, "%d\n", byte_address / 2048);
|
||||
#endif /* Libburn_read_data_logginG */
|
||||
|
||||
|
||||
*data_count = 0;
|
||||
sose_mem = d->silent_on_scsi_error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user