ASPI_ExecScsiCmd: better return value and verbose error when no device

found.
This commit is contained in:
Uwe Bonnes 1999-06-06 14:30:08 +00:00 committed by Alexandre Julliard
parent 38d7da8d52
commit a9a6d00be5

View File

@ -180,9 +180,10 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
fd = ASPI_OpenDevice(lpPRB); fd = ASPI_OpenDevice(lpPRB);
if (fd == -1) { if (fd == -1) {
ERR(aspi, "Failed: could not open device. Device permissions !?\n"); ERR(aspi, "Failed: could not open device c%01dt%01dd%01d. Device permissions !?\n",
lpPRB->SRB_Status = SS_ERR; lpPRB->SRB_HaId,lpPRB->SRB_Target,lpPRB->SRB_Lun);
return SS_ERR; lpPRB->SRB_Status = SS_NO_DEVICE;
return SS_NO_DEVICE;
} }
sg_hd = NULL; sg_hd = NULL;