Better diagnostic messages for MS Window driver.

This commit is contained in:
R. Bernstein
2010-01-23 21:59:43 -05:00
parent 2f5509c68e
commit 9edd3db3d2
4 changed files with 12 additions and 8 deletions

View File

@@ -448,13 +448,14 @@ init_aspi (_img_private_t *env)
env->lpSendCommand = lpSendCommand; env->lpSendCommand = lpSendCommand;
env->b_aspi_init = true; env->b_aspi_init = true;
env->i_lun = i_lun; env->i_lun = i_lun;
cdio_debug("Using ASPI layer"); cdio_debug("Using ASPI layer for %s",
env->gen.source_name);
return true; return true;
} else { } else {
FreeLibrary( hASPI ); FreeLibrary( hASPI );
cdio_debug( "%c: is not a CD-ROM drive", cdio_debug( "%s: is not a CD-ROM drive",
env->gen.source_name[0] ); env->gen.source_name );
return false; return false;
} }
} }
@@ -464,7 +465,8 @@ init_aspi (_img_private_t *env)
} }
FreeLibrary( hASPI ); FreeLibrary( hASPI );
cdio_debug( "Unable to get HaId and target (ASPI)" ); cdio_info( "Unable to find host adapter id and target (ASPI) for %s",
env->gen.source_name );
return false; return false;
} }

View File

@@ -1004,10 +1004,9 @@ cdio_open_am_win32 (const char *psz_orig_source, const char *psz_access_mode)
if (cdio_is_device_win32(psz_orig_source)) if (cdio_is_device_win32(psz_orig_source))
set_arg_win32(_data, "source", psz_orig_source); set_arg_win32(_data, "source", psz_orig_source);
else { else {
/* The below would be okay if all device drivers worked this way. */ /* The below would be okay as an info message if all device
#if 0 drivers worked this way. */
cdio_info ("source %s is a not a device", psz_orig_source); cdio_debug ("source %s is a not a device", psz_orig_source);
#endif
free(_data); free(_data);
return NULL; return NULL;
} }

View File

@@ -1,3 +1,4 @@
/*.exe
/*.o /*.o
/.deps /.deps
/.libs /.libs

View File

@@ -1,10 +1,12 @@
/*.o /*.o
/*.exe
/*~ /*~
/.deps /.deps
/.libs /.libs
/Makefile /Makefile
/Makefile.in /Makefile.in
/bincue /bincue
/bincue.c
/follow_symlink /follow_symlink
/freebsd /freebsd
/bincue /bincue