=================================================================== RCS file: /MkLinux/floppy-darwin/floppy_blkdev.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- floppy-darwin/floppy_blkdev.cpp 2002/04/16 00:43:17 1.32 +++ floppy-darwin/floppy_blkdev.cpp 2002/04/24 18:03:40 1.33 @@ -48,6 +48,7 @@ BSIORequestBlockPtr parentRequest, OptionBits options, struct BSErrorList **errors); +OSStatus FloppyPluginReinit(int unit, BSStorePtr initStore); int non_bsd_sleep(void *event, unsigned long usec); @@ -327,8 +328,10 @@ BSStorePtr infoStore; #endif OSStatus ret; + + FloppyPluginReinit(this->busdev->unit, (BSStorePtr) NULL); - dIOLog("Polling swim3\n"); + dIOLog("Polling swim3 %d\n", this->busdev->unit); ScanForDisketteChange(); ret=FloppyPluginGetInfo(this->busdev->unit, &info); @@ -344,9 +347,10 @@ media_present = *mediaPresent; - dIOLog("mediaPresent = %s, changedState = %s\n", + dIOLog("swim3 %d: mediaPresent = %s, changedState = %s, ret = %d\n", + this->busdev->unit, (*mediaPresent == true) ? "true" : "false", - (*changedState == true) ? "true" : "false"); + (*changedState == true) ? "true" : "false", ret); if (ret == E_BSSuccess) return kIOReturnSuccess;