Author: janderwald
Date: Sun Dec 9 18:39:35 2012
New Revision: 57849
URL:
http://svn.reactos.org/svn/reactos?rev=57849&view=rev
Log:
[USBCCGP]
- Add more debugging for failing webcam
CORE-6574
Modified:
trunk/reactos/drivers/usb/usbccgp/descriptor.c
trunk/reactos/drivers/usb/usbccgp/usbccgp.h
Modified: trunk/reactos/drivers/usb/usbccgp/descriptor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbccgp/descri…
==============================================================================
--- trunk/reactos/drivers/usb/usbccgp/descriptor.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbccgp/descriptor.c [iso-8859-1] Sun Dec 9 18:39:35 2012
@@ -355,6 +355,7 @@
}
else
{
+ DumpConfigurationDescriptor(ConfigurationDescriptor);
DumpFullConfigurationDescriptor(FDODeviceExtension,
ConfigurationDescriptor);
//
@@ -386,15 +387,15 @@
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
Modified: trunk/reactos/drivers/usb/usbccgp/usbccgp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbccgp/usbccg…
==============================================================================
--- trunk/reactos/drivers/usb/usbccgp/usbccgp.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbccgp/usbccgp.h [iso-8859-1] Sun Dec 9 18:39:35 2012
@@ -62,6 +62,11 @@
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(