Bug fix: Possible wrong result on Linux when translating /dev/sr address to /dev/sg

This commit is contained in:
Thomas Schmitt 2024-04-27 18:28:10 +02:00
parent 51f43127ac
commit 6fb158b56d
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2024.03.09.175618"
#define Cdrskin_timestamP "2024.04.27.162735"

View File

@ -1141,7 +1141,7 @@ int burn_disc_erasable(struct burn_drive *d)
void burn_drive_get_status_sig_handling(void)
{
/* --- Part of asynchronous signal handling --- */
/* The frequently used callx burn_drive_get_status*() may be used
/* The frequently used call burn_drive_get_status*() may be used
to react on messages from the libburn built-in signal handler.
*/
@ -2326,12 +2326,12 @@ int burn_drive_find_scsi_equiv(char *path, char adr[])
burn_drive_adr_debug_msg(msg, NULL);
return 0;
}
sprintf(msg, "burn_drive_find_scsi_equiv( %s ) : (%d),%d,%d,%d,%d",
sprintf(msg, "burn_drive_find_scsi_equiv( %s ) : %d,%d,%d,%d,%d",
path, bus_no, host_no, channel_no, target_no, lun_no);
burn_drive_adr_debug_msg(msg, NULL);
ret= burn_drive_convert_scsi_adr(-1, host_no, channel_no, target_no,
lun_no, adr);
ret= burn_drive_convert_scsi_adr(bus_no, host_no, channel_no,
target_no, lun_no, adr);
return ret;
}