wnaspi32: Print error when device cannot be opened.
This commit is contained in:
parent
019016f90f
commit
b6a9257077
|
@ -237,6 +237,10 @@ int SCSI_OpenDevice( int h, int c, int t, int d )
|
|||
|
||||
TRACE("Opening device %s mode O_RDWR\n",devstr);
|
||||
fd = open(devstr, O_RDWR);
|
||||
if (fd == -1) {
|
||||
char *errstring = strerror(errno);
|
||||
ERR("Failed to open device %s: %s\n", devstr, errstring);
|
||||
}
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue