wnaspi32: Print error when device cannot be opened.

This commit is contained in:
Rok Mandeljc 2007-11-01 08:07:18 +01:00 committed by Alexandre Julliard
parent 019016f90f
commit b6a9257077
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}