[USBCCGP]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 9 Dec 2012 18:39:35 +0000 (18:39 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 9 Dec 2012 18:39:35 +0000 (18:39 +0000)
- Add more debugging for failing webcam
CORE-6574

svn path=/trunk/; revision=57849

reactos/drivers/usb/usbccgp/descriptor.c
reactos/drivers/usb/usbccgp/usbccgp.h

index d35c7ed..fa2cb22 100644 (file)
@@ -355,6 +355,7 @@ USBCCGP_ScanConfigurationDescriptor(
         }
         else
         {
+            DumpConfigurationDescriptor(ConfigurationDescriptor);
             DumpFullConfigurationDescriptor(FDODeviceExtension, ConfigurationDescriptor);
 
             //
@@ -386,15 +387,15 @@ USBCCGP_ScanConfigurationDescriptor(
 VOID
 DumpConfigurationDescriptor(PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor)
 {
-    DPRINT1("Dumping ConfigurationDescriptor %x\n", ConfigurationDescriptor);
-    DPRINT1("bLength %x\n", ConfigurationDescriptor->bLength);
-    DPRINT1("bDescriptorType %x\n", ConfigurationDescriptor->bDescriptorType);
-    DPRINT1("wTotalLength %x\n", ConfigurationDescriptor->wTotalLength);
-    DPRINT1("bNumInterfaces %x\n", ConfigurationDescriptor->bNumInterfaces);
-    DPRINT1("bConfigurationValue %x\n", ConfigurationDescriptor->bConfigurationValue);
-    DPRINT1("iConfiguration %x\n", ConfigurationDescriptor->iConfiguration);
-    DPRINT1("bmAttributes %x\n", ConfigurationDescriptor->bmAttributes);
-    DPRINT1("MaxPower %x\n", ConfigurationDescriptor->MaxPower);
+    DbgPrint("Dumping ConfigurationDescriptor %x\n", ConfigurationDescriptor);
+    DbgPrint("bLength %x\n", ConfigurationDescriptor->bLength);
+    DbgPrint("bDescriptorType %x\n", ConfigurationDescriptor->bDescriptorType);
+    DbgPrint("wTotalLength %x\n", ConfigurationDescriptor->wTotalLength);
+    DbgPrint("bNumInterfaces %x\n", ConfigurationDescriptor->bNumInterfaces);
+    DbgPrint("bConfigurationValue %x\n", ConfigurationDescriptor->bConfigurationValue);
+    DbgPrint("iConfiguration %x\n", ConfigurationDescriptor->iConfiguration);
+    DbgPrint("bmAttributes %x\n", ConfigurationDescriptor->bmAttributes);
+    DbgPrint("MaxPower %x\n", ConfigurationDescriptor->MaxPower);
 }
 
 NTSTATUS
index 46e41ae..385cbae 100644 (file)
@@ -62,6 +62,11 @@ typedef struct
     PFDO_DEVICE_EXTENSION FDODeviceExtension;                // pointer to fdo's pdo list
 }PDO_DEVICE_EXTENSION, *PPDO_DEVICE_EXTENSION;
 
+/* descriptor.c */
+
+VOID
+DumpConfigurationDescriptor(
+    IN PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor);
 
 NTSTATUS
 USBCCGP_GetDescriptors(