ASPI_ExecScsiCmd: better return value and verbose error when no device
found.
This commit is contained in:
parent
38d7da8d52
commit
a9a6d00be5
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user