[haiku-commits] r42186 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 14 Jun 2011 18:39:37 +0200 (CEST)

Author: kallisti5
Date: 2011-06-14 18:39:35 +0200 (Tue, 14 Jun 2011)
New Revision: 42186
Changeset: https://dev.haiku-os.org/changeset/42186
Ticket: https://dev.haiku-os.org/ticket/7687

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
Log:
small logic fix on my part, not properly handling usb drives with empty media. 
Potential fix to #7687

Modified: haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp       
2011-06-14 13:44:07 UTC (rev 42185)
+++ haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp       
2011-06-14 16:39:35 UTC (rev 42186)
@@ -787,11 +787,12 @@
 
                                        break;
                                }
-                               TRACE("usb lun %"B_PRIu8" not ready, attempt 
%"B_PRIu32"\n",
-                                       i, tries);
+                               TRACE("usb lun %"B_PRIu8" is ready... "
+                                       "but doesn't have any media 
inserted\n", i);
+                               break;
                        }
-                       TRACE("usb lun %"B_PRIu8" inquiry attempt %"B_PRIu32" 
failed\n", i,
-                               tries);
+                       TRACE("usb lun %"B_PRIu8" inquiry attempt %"B_PRIu32" 
failed\n",
+                               i, tries);
 
                        bigtime_t snoozeTime = 1000000 * tries;
                        TRACE("snoozing %"B_PRIu64" microseconds for usb lun\n",


Other related posts:

  • » [haiku-commits] r42186 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk - kallisti5