diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 6149d4809a..70414ea8e9 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -147,7 +147,9 @@ void MemoryCardDriverThreaded_Linux::MountThreadReset() { UsbStorageDeviceEx &d = m_vStorageDevices[i]; CString sCommand = "umount " + d.sOsMountDir; + LOG->Trace( "reset unmount %i/%i (%s)", i, m_vStorageDevices.size(), sCommand.c_str() ); ExecuteCommand( sCommand ); + LOG->Trace( "reset unmount %i/%i done", i, m_vStorageDevices.size() ); } ExecuteCommand( "rmmod usb-storage" ); @@ -218,7 +220,9 @@ void MemoryCardDriverThreaded_Linux::MountThreadDoOneUpdate() { UsbStorageDeviceEx &d = *vDisconnects[i]; CString sCommand = "umount " + d.sOsMountDir; + LOG->Trace( "unmount disconnects %i/%i (%s)", i, vDisconnects.size(), sCommand.c_str() ); ExecuteCommand( sCommand ); + LOG->Trace( "unmount disconnects %i/%i done", i, vDisconnects.size() ); } // mount all connects @@ -231,10 +235,14 @@ void MemoryCardDriverThreaded_Linux::MountThreadDoOneUpdate() // wasn't unmounted before, then our mount call will fail and the // mount may contain an out-of-date view of the files on the device. sCommand = "umount " + d.sOsMountDir; + LOG->Trace( "unmount old connect %i/%i (%s)", i, vConnects.size(), sCommand.c_str() ); ExecuteCommand( sCommand ); // don't care if this fails + LOG->Trace( "unmount old connect %i/%i done", i, vConnects.size() ); sCommand = "mount " + d.sOsMountDir; + LOG->Trace( "unmount new connect %i/%i (%s)", i, vConnects.size(), sCommand.c_str() ); bool bMountedSuccessfully = ExecuteCommand( sCommand ); + LOG->Trace( "unmount new connect %i/%i done", i, vConnects.size() ); d.bWriteTestSucceeded = bMountedSuccessfully && TestWrite( d.sOsMountDir );