diff --git a/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 177df7ce1a..96d770b41a 100644 --- a/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -46,7 +46,9 @@ static bool ReadFile( const RString &sPath, RString &sBuf ) int fd = open( sPath, O_RDONLY ); if( fd == -1 ) { - LOG->Warn( "Error opening \"%s\": %s", sPath.c_str(), strerror(errno) ); + // "No such file or directory" is understandable + if (errno != ENOENT) + LOG->Warn( "Error opening \"%s\": %s", sPath.c_str(), strerror(errno) ); return false; } @@ -301,7 +303,7 @@ void MemoryCardDriverThreaded_Linux::GetUSBStorageDevices( vectorWarn( "realpath(\"%s\"): %s", szScsiDevice, strerror(errno) ); + // "No such file or directory" is understandable + if (errno != ENOENT) + LOG->Warn( "realpath(\"%s\"): %s", szScsiDevice, strerror(errno) ); continue; }