DEBUG message with burn_drive_cancel, FAILURE with premature end-of-input

This commit is contained in:
Thomas Schmitt 2011-02-18 16:55:42 +00:00
parent 952c9b0432
commit 043d9a82d8
3 changed files with 13 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.02.14.085951"
#define Cdrskin_timestamP "2011.02.18.165542"

View File

@ -870,6 +870,11 @@ void burn_drive_cancel(struct burn_drive *d)
/* ts B00225 : these mutexes are unnecessary because "= 1" is atomar.
pthread_mutex_lock(&d->access_lock);
*/
if (!d->cancel) {
libdax_msgs_submit(libdax_messenger, -1, 0x00000002,
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
"burn_drive_cancel() was called", 0, 0);
}
d->cancel = 1;
/*
pthread_mutex_unlock(&d->access_lock);

View File

@ -183,7 +183,14 @@ static void get_bytes(struct burn_track *track, int count, unsigned char *data)
if (shortage >= count)
track->track_data_done = 1;
if (track->end_on_premature_eoi && !track->open_ended) {
char msg[80];
/* Memorize that premature end of input happened */
sprintf(msg,
"Premature end of input encountered. Missing: %d bytes",
shortage);
libdax_msgs_submit(libdax_messenger, -1, 0x00020180,
LIBDAX_MSGS_SEV_FAILURE, LIBDAX_MSGS_PRIO_HIGH,
msg, 0,0);
track->end_on_premature_eoi = 2;
}
if (track->open_ended || track->end_on_premature_eoi)