Added debug message in case of burn_read_data() return 0
This commit is contained in:
parent
1b18c619f0
commit
2cd90a6080
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2008.02.06.230041"
|
#define Cdrskin_timestamP "2008.02.07.232820"
|
||||||
|
@ -334,7 +334,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
|
|||||||
if(log_fp == NULL)
|
if(log_fp == NULL)
|
||||||
log_fp = fopen("/tmp/burn_read_data_log", "a");
|
log_fp = fopen("/tmp/burn_read_data_log", "a");
|
||||||
if(log_fp!=NULL)
|
if(log_fp!=NULL)
|
||||||
fprintf(log_fp, "%d\n", byte_address / 2048);
|
fprintf(log_fp, "%d\n", (int) (byte_address / 2048));
|
||||||
#endif /* Libburn_read_data_logginG */
|
#endif /* Libburn_read_data_logginG */
|
||||||
|
|
||||||
|
|
||||||
@ -461,6 +461,14 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
|
|||||||
wpt += 2048;
|
wpt += 2048;
|
||||||
*data_count += 2048;
|
*data_count += 2048;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libdax_msgs_submit(libdax_messenger,
|
||||||
|
d->global_index,
|
||||||
|
0x00020000,
|
||||||
|
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
|
"burn_read_data() returns 0",
|
||||||
|
0, 0);
|
||||||
|
|
||||||
ret = 0; goto ex;
|
ret = 0; goto ex;
|
||||||
}
|
}
|
||||||
memcpy(wpt, d->buffer->data, cpy_size);
|
memcpy(wpt, d->buffer->data, cpy_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user