clean up some debugging output.
authorbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sun, 29 Jun 2008 09:13:58 +0000 (29 09:13 +0000)
committerbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sun, 29 Jun 2008 09:13:58 +0000 (29 09:13 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17871 a1c6a512-1295-4272-9138-f99709370657

rbutil/rbutilqt/detect.cpp

index 18f4d23..0f170b4 100644 (file)
@@ -268,17 +268,13 @@ QMap<uint32_t, QString> Detect::listUsbDevices(void)
                 break;
             }
         }
-       qDebug() << "SetupDiGetDeviceRegistryProperty" << description << QString::fromWCharArray(buffer);
 
         unsigned int vid, pid, rev;
-        if(_stscanf(buffer, _TEXT("USB\\Vid_%x&Pid_%x&Rev_%x"), &vid, &pid, &rev) != 3) {
-            qDebug() << "Error getting USB ID -- possibly no USB device";
-        }
-        else {
+        if(_stscanf(buffer, _TEXT("USB\\Vid_%x&Pid_%x&Rev_%x"), &vid, &pid, &rev) == 3) {
             uint32_t id;
             id = vid << 16 | pid;
             usbids.insert(id, description);
-            qDebug("VID: %04x PID: %04x", vid, pid);
+            qDebug("VID: %04x, PID: %04x", vid, pid);
         }
         if(buffer) free(buffer);
     }