Commit b6a92570 authored by Rok Mandeljc's avatar Rok Mandeljc Committed by Alexandre Julliard

wnaspi32: Print error when device cannot be opened.

parent 019016f9
...@@ -237,6 +237,10 @@ int SCSI_OpenDevice( int h, int c, int t, int d ) ...@@ -237,6 +237,10 @@ int SCSI_OpenDevice( int h, int c, int t, int d )
TRACE("Opening device %s mode O_RDWR\n",devstr); TRACE("Opening device %s mode O_RDWR\n",devstr);
fd = open(devstr, O_RDWR); fd = open(devstr, O_RDWR);
if (fd == -1) {
char *errstring = strerror(errno);
ERR("Failed to open device %s: %s\n", devstr, errstring);
}
return fd; return fd;
} }
......
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