Commit a9a6d00b authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

ASPI_ExecScsiCmd: better return value and verbose error when no device

found.
parent 38d7da8d
......@@ -180,9 +180,10 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
fd = ASPI_OpenDevice(lpPRB);
if (fd == -1) {
ERR(aspi, "Failed: could not open device. Device permissions !?\n");
lpPRB->SRB_Status = SS_ERR;
return SS_ERR;
ERR(aspi, "Failed: could not open device c%01dt%01dd%01d. Device permissions !?\n",
lpPRB->SRB_HaId,lpPRB->SRB_Target,lpPRB->SRB_Lun);
lpPRB->SRB_Status = SS_NO_DEVICE;
return SS_NO_DEVICE;
}
sg_hd = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment