Reporting (still cryptic) details about refusal to blank

This commit is contained in:
Thomas Schmitt 2012-10-24 09:58:25 +00:00
parent fcd9811676
commit ad2b3341ab
2 changed files with 8 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.10.02.134821"
#define Cdrskin_timestamP "2012.10.24.095725"

View File

@ -395,11 +395,16 @@ void burn_disc_erase(struct burn_drive *drive, int fast)
||
(drive->drive_role != 1 && drive->drive_role != 5)
) {
char msg[160];
sprintf(msg, "Drive and media state unsuitable for blanking. (role= %d , profile= 0x%x , status= %d)",
drive->drive_role,
(unsigned int) drive->current_profile,
drive->status);
libdax_msgs_submit(libdax_messenger, drive->global_index,
0x00020130,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
"Drive and media state unsuitable for blanking",
0, 0);
msg, 0, 0);
return;
}